-
-
Notifications
You must be signed in to change notification settings - Fork 528
Support hardcoded locale for better caching #2836
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
Labels
wontfix
This will not be worked on
Comments
Although, on second thought, it would be nice to define the locale explicitly instead of relying on the the default system locale in such scenario. |
Feel free to propose directly a PR for it. |
martin-tarjanyi
added a commit
to martin-tarjanyi/springdoc-openapi
that referenced
this issue
Jan 25, 2025
martin-tarjanyi
added a commit
to martin-tarjanyi/springdoc-openapi
that referenced
this issue
Jan 25, 2025
mpleine
pushed a commit
to mpleine/springdoc-openapi
that referenced
this issue
May 17, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Currently, the caching mechanism uses the locale as the key. This makes sense in some cases but in lots of cases there is no need to support different locales in the API documentation. If there is no locale-specific logic in the API docs, caching is not very effective.
Describe the solution you'd like
Provide the option to hardcode the locale for the API docs and if it is present, use that for docs generation and caching.
Describe alternatives you've considered
Pre-load all expected locales but it would be error-prone and wasteful.
The text was updated successfully, but these errors were encountered: