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
{{ message }}
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
In the swagger definition, a request/response body schema is defined, but if I provide some invalid field name in request body, say xyz, swagger gives no error like invalid field or not part of defined schema etc
Expected behavior
Swagger should gives a error regarding invalid field in request/response body
Screeshot
Defined request body in swagger:
Tried out request with invalid field xyz:
Response is success, but expectation is it should fail as xyz is not part of request body:
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug you're encountering
In the swagger definition, a request/response body schema is defined, but if I provide some invalid field name in request body, say
xyz
, swagger gives no error like invalid field or not part of defined schema etcExpected behavior
Swagger should gives a error regarding
invalid field in request/response body
Screeshot
Defined request body in swagger:
Tried out request with invalid field
xyz
:Response is success, but expectation is it should fail as
xyz
is not part of request body:The text was updated successfully, but these errors were encountered: