Skip to content

feat: Added function to preload by specifying locale #2309

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

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

uc4w6c
Copy link
Collaborator

@uc4w6c uc4w6c commented Jul 15, 2023

fix #2299.

When springdoc.pre-loading-enabled: true is set, the default locale is specified and openapi is generated, but if another locale is specified from the browser, openapi needs to be generated again .

Improve performance by specifying the locale you want to preload and generating openapi in advance.

Additional explanation
For example, in Japan, the default locale is ja_JP, but the ACCEPT_LANGUAGE specified by the browser is ja, so it is not preloaded.

@uc4w6c
Copy link
Collaborator Author

uc4w6c commented Jul 15, 2023

If the PR is fine, I'll create a doc.

@uc4w6c uc4w6c requested a review from bnasslahsen July 15, 2023 07:35
@bnasslahsen
Copy link
Collaborator

Looks fine thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance Issue: springdoc-openapi
2 participants