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:
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: