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
ErrorResponse: type: object nullable: true properties: errorCode: type: integer format: int64 example: 4001 statusCode: "$ref": "#/components/schemas/HttpStatusCode" message: type: string example: "Bad Request" example: errorCode: 4001 statusCode: error: true is4xxClientError: true is5xxServerError: false is1xxInformational: false is2xxSuccessful: false is3xxRedirection: false message: "Bad Request"
the following works though
ErrorResponse: oneOf: - type: object - type: "null" properties: errorCode: type: integer format: int64 example: 4001 statusCode: "$ref": "#/components/schemas/HttpStatusCode" message: type: string example: "Bad Request" example: errorCode: 4001 statusCode: error: true is4xxClientError: true is5xxServerError: false is1xxInformational: false is2xxSuccessful: false is3xxRedirection: false message: "Bad Request"
The text was updated successfully, but these errors were encountered:
I also saw this on my 3.1.0 schema and commented on #97
Sorry, something went wrong.
@collin-rogers , @Samuel-Morgan-Tyghe your request is not legitimate , as nullable is not a supported keyword neither by OAS 3.1.0 cf https://spec.openapis.org/oas/latest.html
neither by Json schema ,
nullable was part of 3.0.0 and has been abandonned as a breaking change by OAS, so i would advise to upgrade your schema to comply with OAS 3.1.0
@LasneF Thank you for informing me, I thought it was the other way around and a new feature of OAS :)
No branches or pull requests
the following works though
The text was updated successfully, but these errors were encountered: