Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

request/response body schema referenced in swagger is not getting validating #614

Open
jagdishkumar1 opened this issue Jan 27, 2020 · 0 comments

Comments

@jagdishkumar1
Copy link

jagdishkumar1 commented Jan 27, 2020

  • Swagger version: [Swagger 2.0]

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 etc

Expected behavior

Swagger should gives a error regarding invalid field in request/response body

Screeshot

Defined request body in swagger:
image

Tried out request with invalid field xyz:
image

Response is success, but expectation is it should fail as xyz is not part of request body:
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant