-
Notifications
You must be signed in to change notification settings - Fork 9.1k
"The Responses Object MUST contain at least one response code" #2799
New issue
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
Conversation
Unfortunately JSON Schema doesn't have a "contains"-like operation for objects, which would let us say "there must be at least one property matching edit: I thought of a way of checking this! added as a second commit. |
Wait, is the "MUST contain at least one response code" requirement meant to not count Perhaps the spec itself could also use a clarification. |
Good question! I always interpreted it as "must contain at least one, other than I wonder if there is much of a desire to declare a |
It might be good to discuss this at the next community meeting -- how do people interpret this section of the spec? is interpreting it one way obviously superior to the other option? |
In my opinion, having a single It could be argued that this constraint is moot now that the |
8e5086f
to
cff6956
Compare
https://spec.openapis.org/oas/v3.1.0#responses-object