Forum Discussion

ewoud's avatar
ewoud
Regular Visitor
4 years ago

Validate examples against the schema

I've created my specs and added some examples to the different endpoints.
The specification is valid against the OAS3 validator but this doesn't validate if the provided examples are valid against my schema(s).

I've been looking into a middleware to test my examples, which is ok, but I was looking for a tool where I can just input the yaml-api-specs (incl examples) and where the output would be a validation list of all the examples.

Does anyone know such a tool? Or does have a better way to quickly validate the examples provided in the yaml?