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
Upgrade from 1.21.0 to 1.21.1 breaks request body properties for swagger file where allOf is used
allOf
1.21.0
1.21.1
{ "consumes": [ "application/json" ], "produces": [ "application/json" ], "swagger": "2.0", "info": { "description": "", "title": "", "version": "2018-02-23" }, "basePath": "/v1", "paths": { "/users": { "post": { "summary": "", "parameters": [ { "name": "data", "in": "body", "required": true, "schema": { "type": "object", "allOf": [ { "$ref": "#/definitions/AuthUser" }, { "required": [ "password" ], "properties": { "password": { "description": "The user's password", "type": "string", "minLength": 8 } } } ] } } ], "responses": { "200": { "description": "user created", "schema": { "$ref": "#/definitions/AuthUser" } } } } } }, "definitions": { "AuthUser": { "type": "object", "allOf": [ { "$ref": "#/definitions/Entity" }, { "required": [ "username" ], "properties": { "username": { "type": "string" } } } ] }, "Entity": { "type": "object", "properties": { "id": { "type": "string", "example": "1234" } } } }, "parameters": {} }
consumes: - application/json produces: - application/json swagger: '2.0' info: description: '' title: '' version: '2018-02-23' basePath: /v1 paths: /users: post: summary: '' parameters: - name: data in: body required: true schema: type: object allOf: - $ref: '#/definitions/AuthUser' - required: - password properties: password: description: The user's password type: string minLength: 8 responses: '200': description: user created schema: $ref: '#/definitions/AuthUser' definitions: AuthUser: type: object allOf: - $ref: '#/definitions/Entity' - required: - username properties: username: type: string Entity: type: object properties: id: type: string example: '1234' parameters: {}
The text was updated successfully, but these errors were encountered:
6ce9245
@frodeaa thanks for reporting and for detailed test-case!
version v1.21.2 has just been released
v1.21.2
Sorry, something went wrong.
fix allOf with readOnly/writeOnly
88c4e35
resets the readOnly/writeOnly to default (undefined) before merging it with next subschema ref: Redocly#532 rel: Redocly#422
No branches or pull requests
Upgrade from 1.21.0 to 1.21.1 breaks request body properties
for swagger file where
allOf
is used1.21.0
1.21.1
The text was updated successfully, but these errors were encountered: