Schizoping
Schizoping

Reputation: 137

Validating HTTP response in swagger

Is it possible to validate an HTTP response in swagger editor and/or swagger ui? I need to check that a particular response has exactly the structure and data i want. For example the body has to be {"message":"pong"}.

Upvotes: 1

Views: 861

Answers (1)

Helen
Helen

Reputation: 98011

Swagger Editor and Swagger UI do not validate API responses against the schema. The corresponding feature request was marked as "nice to have" but "out of scope for the project for now".

However, since these projects are open source, you could implement this feature yourself and submit a pull request.

Upvotes: 1

Related Questions