You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, maybe this is an okay place to bring up the question of general OAS 3.1 support? Another feature of 3.1 that brought me to this post was making the paths property optional, so that you can use a file to describe only, for example, reusable components. Currently the workaround is to use version 3 and turn off spec validation. https://github.com/OAI/OpenAPI-Specification/releases/tag/3.1.0-rc0
Description
OpenAPI's Schema Object for OAS 3.1 to use JSON Schema 2019-09, which includes the const keyword (In this PR: Defining constant value in response the introduction of this keyword was discussed)
Describe the solution you'd like
The OpenAPI Spec would looks like:
Generated source:
Describe alternatives you've considered
IMHO, define an enum attribute with a single value in the list is not the same.
Related issues
#1916
The text was updated successfully, but these errors were encountered: