File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/configuration
springdoc-openapi-tests/springdoc-openapi-security-tests/src/test/resources/results Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ OpenApiCustomizer springSecurityLoginEndpointCustomizer(ApplicationContext appli
147147 operation .requestBody (requestBody );
148148 ApiResponses apiResponses = new ApiResponses ();
149149 apiResponses .addApiResponse (String .valueOf (HttpStatus .OK .value ()), new ApiResponse ().description (HttpStatus .OK .getReasonPhrase ()));
150- apiResponses .addApiResponse (String .valueOf (HttpStatus .FORBIDDEN .value ()), new ApiResponse ().description (HttpStatus .FORBIDDEN .getReasonPhrase ()));
150+ apiResponses .addApiResponse (String .valueOf (HttpStatus .UNAUTHORIZED .value ()), new ApiResponse ().description (HttpStatus .UNAUTHORIZED .getReasonPhrase ()));
151151 operation .responses (apiResponses );
152152 operation .addTagsItem ("login-endpoint" );
153153 PathItem pathItem = new PathItem ().post (operation );
Original file line number Diff line number Diff line change 8484 "200" : {
8585 "description" : " OK"
8686 },
87- "403 " : {
88- "description" : " Forbidden "
87+ "401 " : {
88+ "description" : " Unauthorized "
8989 }
9090 }
9191 }
Original file line number Diff line number Diff line change 4141 "200" : {
4242 "description" : " OK"
4343 },
44- "403 " : {
45- "description" : " Forbidden "
44+ "401 " : {
45+ "description" : " Unauthorized "
4646 }
4747 }
4848 }
4949 }
5050 },
51- "components" : {
52- }
53- }
51+ "components" : {}
52+ }
You can’t perform that action at this time.
0 commit comments