Generate a test to validate response from OpenAPI3 schema?

Is it possible to generate a test to validate the response from an OpenAPI3 schema? The closest I have been able to find is to convert the OAI schema to JSONSchema and manually write a test using ajv to validate. I was hoping there might be a solution that is more auto generated and that uses the OAI schema as imported. Thanks.

Hi @amy
I have the same issue. Did you find out a solution? Which library are you using to convert from OAS to Json Schema?

Thanks a lot

openapi2jsonschema is one tools you can use.

I actually wrote a blog post on this exact topic recently. Hopefully you can adapt it to your use case.