Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 78afe57

Browse files
Merge branch 'compatible-lower-version' of github.com:SkyeBeFreeman/springdoc-openapi into SkyeBeFreeman-compatible-lower-version
2 parents 7b5785a + 9778cbb commit 78afe57

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

‎springdoc-openapi-starter-common/src/main/java/org/springdoc/api/AbstractOpenApiResource.java‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@
143143
* @author hyeonisism
144144
* @author doljae
145145
* @author zdary
146+
* @author Haotian Zhang
146147
*/
147148
public abstract class AbstractOpenApiResource extends SpecFilter {
148149

@@ -340,9 +341,20 @@ private void getOpenApi() {
340341
this.getOpenApi(null, Locale.getDefault());
341342
}
342343

343-
/**
344-
* Gets open api.
345-
*
344+
/**
345+
* Gets open api.
346+
*
347+
* @param locale the locale
348+
* @return the open api
349+
*/
350+
protected OpenAPI getOpenApi(Locale locale) {
351+
return this.getOpenApi(null, locale);
352+
}
353+
354+
/**
355+
* Gets open api.
356+
*
357+
* @param serverBaseUrl the server base url
346358
* @param locale the locale
347359
* @return the open api
348360
*/

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /