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.1.0 info: title: Sample API version: '0.1' paths: components: schemas: BasicErrorModel: type: object required: - message - code properties: message: type: string code: type: integer minimum: 100 maximum: 600 ExtendedErrorModel: allOf: # Combines the BasicErrorModel and the inline model - $ref: "#/components/schemas/BasicErrorModel" - type: object required: - rootCause properties: rootCause: type: string
Switching between OpenAPI 3.0 and 3.1 versions causes the allOf element to render improperly.
Steps to reproduce the behavior:
ExtendedErrorModel
but fixes itself upon opening it, showing expected behavior.
3.1.0
3.0.0
The spec renders as it did in step 1. Instead, the ref is not rendered properly:
The model needs to be fully collapsed and re-opened to render properly.
While probably inconsequential, it is confusing - initially I thought the behavior of allOf has changed for some reason.
allOf
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
Switching between OpenAPI 3.0 and 3.1 versions causes the allOf element to render improperly.
To reproduce...
Steps to reproduce the behavior:
ExtendedErrorModel
renders with a wrong type:but fixes itself upon opening it, showing expected behavior.
3.1.0
in the first line to3.0.0
.3.0.0
in the first line to3.1.0
again.Expected behavior
The spec renders as it did in step 1. Instead, the ref is not rendered properly:
The model needs to be fully collapsed and re-opened to render properly.
Additional context or thoughts
While probably inconsequential, it is confusing - initially I thought the behavior of
allOf
has changed for some reason.The text was updated successfully, but these errors were encountered: