Uh oh!
There was an error while loading. Please reload this page.
"The Responses Object MUST contain at least one response code" - #2799
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. |
hkosova
commented
Nov 21, 2021
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 |
hkosova
commented
Nov 21, 2021
karenetheridge
commented
Nov 25, 2021
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? |
darrelmiller
commented
Dec 23, 2021
In my opinion, having a single It could be argued that this constraint is moot now that the |
Uh oh!
There was an error while loading. Please reload this page.
8e5086f to
cff6956Compare
https://spec.openapis.org/oas/v3.1.0#responses-object