The code base for SpringBoot: Generate OpenAPI Document During Test Phase article.
Run the mvn clean install or mvn test command in order to run the tests.
A document called openapi.yaml will be generated under src/main/resources/apidocs folder.
Note: the same document can be found at
localhost:8080/v3/api-docs.yaml