Replies: 1 comment 1 reply
-
If you have suggestion to improvements - create issues, please |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When I do a gradle build locally all of my controller routes show up in the generated OpenApi yaml docs. Even though most controllers have a
@Requires
annotation, I don't need to specify which environments if I want the docs to have all of the routes. I only specify the environments if I want to limit, say create internal/external docs.However, in GitHub Actions, the opposite is true. The OpenApi docs only contain the title/top level OpenApi info but no routes/schemas. I was able to fix this by explicitly stopping deduction of environments in the build step. Is it expected that the deduced environment
CLOUD
honors the@Requires
annotations and expects explicit environment setting when locally it does not?Re-create
Cloud Env Empty Docs
MICRONAUT_ENVIRONMENTS=CLOUD ./gradlew :kaptKotlin
Fix in CI
./gradlew -Dmicronaut.env.deduction=false :kaptKotlin
Beta Was this translation helpful? Give feedback.
All reactions