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
According to the swagger specification, request bodies are optional by default, i.e. if the required field doesn't exist, it should be inferred as false.
From my limited knowledge of the code, this seems to be doing the opposite, causing any requestBody without the required parameter to be inferred as required, even though it should not be.
According to the swagger specification, request bodies are optional by default, i.e. if the
required
field doesn't exist, it should be inferred asfalse
.From my limited knowledge of the code, this seems to be doing the opposite, causing any
requestBody
without therequired
parameter to be inferred as required, even though it should not be.swagger-typescript-api/src/schema-routes/schema-routes.js
Lines 626 to 628 in 4d48d20
The text was updated successfully, but these errors were encountered: