|
|
|
|
@ -57,6 +57,7 @@ public class SpringDocAutoConfiguration {
|
|
|
|
|
openApi.externalDocs(properties.getExternalDocs());
|
|
|
|
|
openApi.tags(properties.getTags());
|
|
|
|
|
openApi.paths(properties.getPaths());
|
|
|
|
|
if (properties.getComponents() != null) {
|
|
|
|
|
openApi.components(properties.getComponents());
|
|
|
|
|
Set<String> keySet = properties.getComponents().getSecuritySchemes().keySet();
|
|
|
|
|
List<SecurityRequirement> list = new ArrayList<>();
|
|
|
|
|
@ -64,7 +65,7 @@ public class SpringDocAutoConfiguration {
|
|
|
|
|
keySet.forEach(securityRequirement::addList);
|
|
|
|
|
list.add(securityRequirement);
|
|
|
|
|
openApi.security(list);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return openApi;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|