Skip to content

Commit 0c6e144

Browse files
committed
fix:compatible with lower version of getOpenApi().
1 parent 3b76772 commit 0c6e144

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)