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
So (unfortunately) in OpenAPI requestBody is required: false by default. openapi_first currently treats those request bodies as optional. Meaning, if you specify a request body with the content-type as defined in the API description, it validates the request body and returns a failure if the request body is invalid. This is easy to reason about, but there are cases that might need clarification.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So (unfortunately) in OpenAPI
requestBody
isrequired: false
by default. openapi_first currently treats those request bodies as optional. Meaning, if you specify a request body with the content-type as defined in the API description, it validates the request body and returns a failure if the request body is invalid. This is easy to reason about, but there are cases that might need clarification.The current behavior is like this:
Does that make sense to you?
Beta Was this translation helpful? Give feedback.
All reactions