Validate Swagger OpenAPI Specification yaml

Viewed 28

I have a Spring Boot application that contains the OpenAPI .yaml specification file in the resources folder and using the openapi-generator-maven-plugin, building the project it generates the API interfaces and then can be used as a maven artifact in another project to implement those APIs.

Currently, I am validating the specification file locally using the Swagger CLI validate command through the terminal.

Is there a way to validate the specification.yaml file when building the project using another plugin or something like that?

If no, is there any dependency I can use to validate the .yaml file while running the project?

0 Answers
Related