Skip to content

Commit 1cc8d85

Browse files
committed
CHANGELOG.md prepare for 1.7.0
1 parent c536cef commit 1cc8d85

File tree

4 files changed

+37
-7
lines changed

4 files changed

+37
-7
lines changed

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.7.0] - 2023-04-01
9+
10+
### Added
11+
12+
- #2152 - Detect directions in default sort values
13+
- #2167 #2166 - Add request parameter for token endpoint
14+
- #2188 - Support of {*param} path patterns
15+
16+
### Changed
17+
18+
- Upgrade spring-boot to 2.7.10
19+
- Upgrade swagger-core to 2.2.9
20+
- Upgrade swagger-ui to 4.18.2
21+
- Spring Native is now superseded by Spring Boot 3 official
22+
- #2173 - Remove webjars-locator-core
23+
24+
### Fixed
25+
26+
- #2122 - Super tiny fix typo
27+
- #2131 - Fixed a bug that javadoc of record class parameters was not recognized.
28+
- #2140 - Javadoc record class parameters not recognized
29+
- #2123 #2141 - fix spring authorization server response.
30+
- #2148 - Fix properties show-oauth2-endpoints and SpringDocConfigProperties#showOauth2Endpoint properties name mismatch
31+
- #2149 - Request parameters with default values are marked as required.
32+
- #2155 - openApi.getServers() is null in OpenApiCustomiser when using different locales.
33+
- #2152 - Redundant(wrong) direction appended to @PageableDefault.
34+
- #2181 #2183 - Fixed DefaultFlatParamObject to work with annotated parameters.
35+
- #2170 #2187 - All request parameters marked as required for Java controllers in mixed projects in 2.0.3
36+
- #2165 - Custom Converters are not excluded if not registered for Http Message Converter.
37+
- #2185 - Fix behaviour of required flag for schema class fields.
38+
839
## [1.6.15] - 2023-03-07
940

1041
### Added

springdoc-openapi-common/src/main/java/org/springdoc/core/AbstractRequestService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ public Parameter buildParams(ParameterInfo parameterInfo, Components components,
492492
// By default
493493
if (!isRequestBodyParam(requestMethod, parameterInfo, openApiVersion)) {
494494
parameterInfo.setRequired(!((DelegatingMethodParameter) methodParameter).isNotRequired() && !methodParameter.isOptional());
495-
//parameterInfo.setParamType(QUERY_PARAM);
496495
parameterInfo.setDefaultValue(null);
497496
return this.buildParam(parameterInfo, components, jsonView);
498497
}

springdoc-openapi-javadoc/src/main/java/org/springdoc/openapi/javadoc/SpringDocJavadocProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public String getClassJavadoc(Class<?> cl) {
7575
public Map<String, String> getRecordClassParamJavadoc(Class<?> cl) {
7676
ClassJavadoc classJavadoc = RuntimeJavadoc.getJavadoc(cl);
7777
return classJavadoc.getRecordComponents().stream()
78-
.collect(Collectors.toMap(ParamJavadoc::getName, record -> formatter.format(record.getComment())));
78+
.collect(Collectors.toMap(ParamJavadoc::getName, recordClass -> formatter.format(recordClass.getComment())));
7979
}
8080

8181
/**

springdoc-openapi-security/src/main/java/org/springdoc/security/SpringDocSecurityOAuth2Customizer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.lang.reflect.Field;
44

5+
import io.swagger.v3.core.util.AnnotationsUtils;
56
import io.swagger.v3.oas.annotations.enums.ParameterIn;
67
import io.swagger.v3.oas.models.OpenAPI;
78
import io.swagger.v3.oas.models.Operation;
@@ -22,7 +23,6 @@
2223
import org.apache.commons.lang3.reflect.FieldUtils;
2324
import org.slf4j.Logger;
2425
import org.slf4j.LoggerFactory;
25-
import org.springdoc.core.SpringDocAnnotationsUtils;
2626
import org.springdoc.core.customizers.GlobalOpenApiCustomizer;
2727
import org.springdoc.security.oauth2.SpringDocOAuth2AuthorizationServerMetadata;
2828
import org.springdoc.security.oauth2.SpringDocOAuth2Token;
@@ -125,7 +125,7 @@ private void getOAuth2TokenIntrospectionEndpointFilter(OpenAPI openAPI, Security
125125
new SpringDocSecurityOAuth2EndpointUtils(OAuth2TokenIntrospectionEndpointFilter.class).findEndpoint(securityFilterChain);
126126
if (oAuth2EndpointFilter != null) {
127127
ApiResponses apiResponses = new ApiResponses();
128-
buildApiResponsesOnSuccess(apiResponses, SpringDocAnnotationsUtils.resolveSchemaFromType(SpringDocOAuth2TokenIntrospection.class, openAPI.getComponents(), null));
128+
buildApiResponsesOnSuccess(apiResponses, AnnotationsUtils.resolveSchemaFromType(SpringDocOAuth2TokenIntrospection.class, openAPI.getComponents(), null));
129129
buildApiResponsesOnInternalServerError(apiResponses);
130130
buildApiResponsesOnBadRequest(apiResponses, openAPI);
131131

@@ -153,7 +153,7 @@ private void getOAuth2AuthorizationServerMetadataEndpoint(OpenAPI openAPI, Secur
153153
new SpringDocSecurityOAuth2EndpointUtils(OAuth2AuthorizationServerMetadataEndpointFilter.class).findEndpoint(securityFilterChain);
154154
if (oAuth2EndpointFilter != null) {
155155
ApiResponses apiResponses = new ApiResponses();
156-
buildApiResponsesOnSuccess(apiResponses, SpringDocAnnotationsUtils.resolveSchemaFromType(SpringDocOAuth2AuthorizationServerMetadata.class, openAPI.getComponents(), null));
156+
buildApiResponsesOnSuccess(apiResponses, AnnotationsUtils.resolveSchemaFromType(SpringDocOAuth2AuthorizationServerMetadata.class, openAPI.getComponents(), null));
157157
buildApiResponsesOnInternalServerError(apiResponses);
158158
Operation operation = buildOperation(apiResponses);
159159
buildPath(oAuth2EndpointFilter, "requestMatcher", openAPI, operation, HttpMethod.GET);
@@ -199,7 +199,7 @@ private void getOAuth2TokenEndpoint(OpenAPI openAPI, SecurityFilterChain securit
199199

200200
if (oAuth2EndpointFilter != null) {
201201
ApiResponses apiResponses = new ApiResponses();
202-
buildApiResponsesOnSuccess(apiResponses, SpringDocAnnotationsUtils.resolveSchemaFromType(SpringDocOAuth2Token.class, openAPI.getComponents(), null));
202+
buildApiResponsesOnSuccess(apiResponses, AnnotationsUtils.resolveSchemaFromType(SpringDocOAuth2Token.class, openAPI.getComponents(), null));
203203
buildApiResponsesOnInternalServerError(apiResponses);
204204
buildApiResponsesOnBadRequest(apiResponses, openAPI);
205205
buildOAuth2Error(openAPI, apiResponses, HttpStatus.UNAUTHORIZED);
@@ -317,7 +317,7 @@ private ApiResponses buildApiResponsesOnBadRequest(ApiResponses apiResponses, Op
317317
* @param httpStatus the http status
318318
*/
319319
private static void buildOAuth2Error(OpenAPI openAPI, ApiResponses apiResponses, HttpStatus httpStatus) {
320-
Schema oAuth2ErrorSchema = SpringDocAnnotationsUtils.resolveSchemaFromType(OAuth2Error.class, openAPI.getComponents(), null);
320+
Schema oAuth2ErrorSchema = AnnotationsUtils.resolveSchemaFromType(OAuth2Error.class, openAPI.getComponents(), null);
321321
apiResponses.addApiResponse(String.valueOf(httpStatus.value()), new ApiResponse().description(httpStatus.getReasonPhrase()).content(new Content().addMediaType(
322322
APPLICATION_JSON_VALUE,
323323
new MediaType().schema(oAuth2ErrorSchema))));

0 commit comments

Comments
 (0)