kbuntrock / openapi-maven-plugin

Generate openapi documentation for SpringMVC or JaxRS/JakartaRS projects.
https://kbuntrock.github.io/openapi-maven-plugin/
MIT License
13 stars 8 forks source link

Servers.url #97

Closed magx2 closed 6 months ago

magx2 commented 6 months ago

Open API contains server object: https://swagger.io/specification/

Can I somehow pass it in the plugin?

kbuntrock commented 6 months ago

Yes, you can pass it with the "freeFields" configuration : https://kbuntrock.github.io/openapi-maven-plugin/#/configuration?id=freefields

It is possible to write the json directly in the pom.xml (allow to inject maven properties) or it can be written in a dedicated json file (cleaner).

Does it fit your needs?

PS : For this kind of questions, I guess we could use the "Discussions" github functionality : https://github.com/kbuntrock/openapi-maven-plugin/discussions Specially the "Q&A" section (not used yet but I think thread creation is allowed for everyone, don't hesitate to tell me if not).

magx2 commented 6 months ago

Just to be sure - it will also work with YML, right?

magx2 commented 6 months ago

OK, works