Skip to content

Commit a5ab77a

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

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,20 @@ private void getOpenApi() {
340340
this.getOpenApi(null, Locale.getDefault());
341341
}
342342

343+
/**
344+
* Gets open api.
345+
*
346+
* @param locale the locale
347+
* @return the open api
348+
*/
349+
protected OpenAPI getOpenApi(Locale locale) {
350+
return this.getOpenApi(null, locale);
351+
}
352+
343353
/**
344354
* Gets open api.
345355
*
356+
* @param serverBaseUrl the server base url
346357
* @param locale the locale
347358
* @return the open api
348359
*/

0 commit comments

Comments
 (0)