1

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"}.

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.