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
Example Swagger/OpenAPI definition:
openapi: 3.0.3 info: title: 'Things n stuff' version: 1.0.0 paths: '/data': get: responses: '200': description: 'The things you asked for.' content: application/json: schema: allOf: - $ref: '#/components/schemas/PageInfo' - type: object required: - items properties: items: type: array items: allOf: - anyOf: - $ref: '#/components/schemas/Thing1' - $ref: '#/components/schemas/Thing2' - type: object required: - isImportant properties: isImportant: type: boolean components: schemas: BaseThing: type: object required: - color properties: color: type: string Thing1: allOf: - $ref: '#/components/schemas/BaseThing' - type: object properties: color: type: string enum: - blue - red Thing2: allOf: - $ref: '#/components/schemas/BaseThing' - type: object properties: color: type: string enum: - green - yellow PageInfo: type: object properties: pageNumber: type: number minimum: 0 totalPages: type: number minimum: 0
The isImportant property is not added to the generated example. See the "screenshots" section.
isImportant
The schema itself appears to be correct in the generated UI.
Copy and paste the schema above into https://editor.swagger.io/.
I expected the generated example in the screenshot to include isImportant.
Thank you for the useful tool!
The text was updated successfully, but these errors were encountered:
@gwerbin Thank you for reporting this. Perfect minimal reproduction yaml, I could find the issue instantly, very appreciated. Fix provided with #7041.
Sorry, something went wrong.
I actually forgot to upload the screenshot of the problematic generated example, but glad you were able to find it easily nonetheless!
Successfully merging a pull request may close this issue.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
The
isImportant
property is not added to the generated example. See the "screenshots" section.The schema itself appears to be correct in the generated UI.
To reproduce...
Copy and paste the schema above into https://editor.swagger.io/.
Expected behavior
I expected the generated example in the screenshot to include
isImportant
.Screenshots
Additional context or thoughts
Thank you for the useful tool!
The text was updated successfully, but these errors were encountered: