We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description:
Getting the following error when try to generate client/service from a valid OpenAPI specification:
ERROR: Invalid reference found null in the schema.
But the client generation happens with default json type.
json
Steps to reproduce:
Try to generate client/service for this OpenAPI specification:
openapi: 3.0.1 info: title: SocialMedia version: 0.1.0 servers: - url: "http://{server}:{port}/socialMedia/v1" variables: server: default: localhost port: default: "8080" paths: /admin.user: get: summary: Get admin user operationId: getAdminUser responses: "200": description: Ok content: application/json: schema: title: admin.user schema type: object required: - email - id - name properties: id: type: integer format: int64 name: type: string email: type: string
Affected Versions:
Ballerina SwanLake Update 9 (2201.9.x)
Note: Identified during the connector generation process for slack: ballerina-platform/module-ballerinax-slack#159 (comment)
The text was updated successfully, but these errors were encountered:
This issue occurs at the parser level when it does the flattening. The parsed reference look like this:
"$ref" : "admin.user schema"
It should points to a path like this: #/components/schemas/admin.user schema
#/components/schemas/admin.user schema
Sorry, something went wrong.
Created an issue in the parser side: swagger-api/swagger-parser#2109
No branches or pull requests
Description:
Getting the following error when try to generate client/service from a valid OpenAPI specification:
ERROR: Invalid reference found null in the schema.
But the client generation happens with default
json
type.Steps to reproduce:
Try to generate client/service for this OpenAPI specification:
Affected Versions:
Ballerina SwanLake Update 9 (2201.9.x)
Note: Identified during the connector generation process for slack: ballerina-platform/module-ballerinax-slack#159 (comment)
The text was updated successfully, but these errors were encountered: