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?
openapi4j tool would be useful in your case where you are using OAS 3.0
We found https://github.com/codekie/openapi-examples-validator from https://openapi.tools/#data-validators. It's a separate step in our dev env, but it does the job wonderfully.
HTH,
gap