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
The const keyword that is part of the JSON Schema spec (https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#section-6.1.3) is not yet supported by sttp-apispec.
const
Adding support for this would make it possible to define enums with a description of each enum value, as suggested in json-schema-org/json-schema-vocabularies#47 and OAI/OpenAPI-Specification#348.
Example:
oneOf: - const: D description: Suspicious transaction - const: I description: Failed data validation check
The text was updated successfully, but these errors were encountered:
This can be closed, was fixed in #69
Sorry, something went wrong.
Thanks, closing :)
No branches or pull requests
The
const
keyword that is part of the JSON Schema spec (https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#section-6.1.3) is not yet supported by sttp-apispec.Adding support for this would make it possible to define enums with a description of each enum value, as suggested in json-schema-org/json-schema-vocabularies#47 and OAI/OpenAPI-Specification#348.
Example:
The text was updated successfully, but these errors were encountered: