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
request body has an error: doesn't match schema #/components/schemas/Request: Error at "/myint": value must be an integer
request body has an error: doesn't match schema #/components/schemas/Request: Error at "/myobj": value must be an object
Is this a valid bug or am I doing something wrong? The only thing I could find was these tickets: #793 and oapi-codegen/oapi-codegen#1169 which are closed without a fix or a workaround.
I am using github.com/deepmap/oapi-codegen/v2 v2.1.0 and github.com/getkin/kin-openapi v0.122.0
The text was updated successfully, but these errors were encountered:
For the following openapi 3 multi-part:
And using the following curl command:
The validation for the
myint
andmyobj
fails withThe failures comes from comparing these types with string because all the values are decoded as strings:
Is this a valid bug or am I doing something wrong? The only thing I could find was these tickets: #793 and oapi-codegen/oapi-codegen#1169 which are closed without a fix or a workaround.
I am using
github.com/deepmap/oapi-codegen/v2 v2.1.0
andgithub.com/getkin/kin-openapi v0.122.0
The text was updated successfully, but these errors were encountered: