DEV Community

loading...

Discussion on: How to use the Open API and Swagger Validator plugin for Chai and Jest to keep your API documentation up to date

Collapse
jameswallis profile image
James Wallis Author

Hi, the plugin should support OpenAPI 2 Spec. Here is a valid v2 spec that they use to test. It's possible that you've found a bug so I'd recommend raising it on GitHub.

Collapse
hggonzalezdev profile image
Gabriel Gonzalez

In that example they specify the path in the json file, but in my case I'm doing it using express-openapi and I define the paths on each controller I create, could that be an issue at the moment of testing?