remove default error responses from login endpoint
This commit is contained in:
parent
d67d15b0d7
commit
85887fa9af
@ -233,7 +233,9 @@ public class SwaggerConfiguration {
|
||||
var loginForm = new SecurityRequirement().addList("HTTP login form");
|
||||
return openAPI -> openAPI.getPaths().entrySet().stream().peek(entry -> {
|
||||
securityCustomization(loginForm, entry);
|
||||
if (!entry.getKey().equals(LOGIN_ENDPOINT)) {
|
||||
defaultErrorResponsesCustomization(entry.getValue());
|
||||
}
|
||||
}).map(this::tagsCustomization).forEach(openAPI::addTagsItem);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user