Skip to content

feat: Added function to preload by specifying locale#2309

Merged
bnasslahsen merged 1 commit intospringdoc:mainfrom
uc4w6c:feat_preloading_locales
Jul 16, 2023
Merged

feat: Added function to preload by specifying locale#2309
bnasslahsen merged 1 commit intospringdoc:mainfrom
uc4w6c:feat_preloading_locales

Conversation

@uc4w6c
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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