Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] Compilation plugin #197

Open
chameleon82 opened this issue Oct 3, 2022 · 1 comment
Open

[Idea] Compilation plugin #197

chameleon82 opened this issue Oct 3, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@chameleon82
Copy link

Api's usually never change spec on-the-fly and specifications can be generated during compilation time instead of runtime.
It will reduce unnecessary computations at runtime, I believe during compilation it is possible to extract more information about models and reduce runtime dependencies.
Compiled openapi.yaml would be possible to place src_managed/resources/openapi.yaml or configured location in the jar.

@pjfanning
Copy link
Contributor

pjfanning commented Oct 3, 2022

This is just a lib. It can be used by a compile plugin, a sbt plugin or mill plugin to generate a yaml or json file. In a previous job, I used this lib in gradle builds to do just that.

If you feel that writing such a plugin or plugins, fire away.

@pjfanning pjfanning added the enhancement New feature or request label Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants