Skip to content

Commit 681c29d

Browse files
author
bnasslahsen
committed
Update changelog
1 parent ff40f69 commit 681c29d

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

CHANGELOG.md

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

7+
## [1.3.0] - 2020-03-21
8+
### Added
9+
- Feature to support for property resolver on @Schema (name, title and description)
10+
- Introduced new property springdoc.api-docs.resolve-schema-properties for property resolver on @Schema #501
11+
- Being able to see the class within an EntityModel as a Schema. Fixes #453
12+
- Introduce new property springdoc.remove-broken-reference-definitions
13+
- Property resolver on @ApiResponse.description #498
14+
- Support of @QuerydslPredicate in Rest controllers
15+
### Changed
16+
- Change the interface of ParameterCustomizer
17+
- Improve isAnnotationToIgnore
18+
- Improve isParamToIgnore
19+
- Use MethodParameter#isOptional() instead of checking for Optional type
20+
- Improve the support of Pageable. Fixes #496
21+
- Improve compatibility with spring-boot 1, even there is EOL announced: https://spring.io/blog/2018/07/30/spring-boot-1-x-eol-aug-1st-2019
22+
723
## [1.2.34] - 2020-03-17
824
### Added
925
- Property resolver on @operation.summary, @parameter.description and @parameter.name
@@ -16,7 +32,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1632
- Improve compatibility of springdoc-openapi-data-rest with Spring Webflux #477
1733
- Improve support of  Swagger UI to use provided spec.yml #480
1834
- Delegate primitive type generation to swagger-core
19-
- spring-boot 1, end of compatibility: https://spring.io/blog/2018/07/30/spring-boot-1-x-eol-aug-1st-2019
2035
### Fixed
2136
- Wrong schema mapping with inheritance. Fixes #489
2237

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The library automatically generates documentation in JSON/YAML and HTML formatte
1515

1616
This library supports:
1717
* OpenAPI 3
18-
* Spring-boot (v2)
18+
* Spring-boot (v1 and v2)
1919
* JSR-303, specifically for @NotNull, @Min, @Max, and @Size.
2020
* Swagger-ui
2121
* Oauth 2

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ else if (!RequestMethod.GET.equals(requestMethod)) {
200200
parameterInfo, requestBodyInfo);
201201
applyBeanValidatorAnnotations(requestBodyInfo.getRequestBody(), parameterAnnotations);
202202
}
203-
customiseParameter(parameter, parameterInfo, handlerMethod);
203+
customiseParameter(parameter, parameterInfo);
204204
}
205205
}
206206

@@ -247,7 +247,7 @@ protected Operation customiseOperation(Operation operation, HandlerMethod handle
247247
return operation;
248248
}
249249

250-
protected Parameter customiseParameter(Parameter parameter, ParameterInfo parameterInfo, HandlerMethod handlerMethod) {
250+
protected Parameter customiseParameter(Parameter parameter, ParameterInfo parameterInfo) {
251251
parameterCustomizers.ifPresent(customizers -> customizers.forEach(customizer -> customizer.customize(parameter, parameterInfo.getMethodParameter())));
252252
return parameter;
253253
}

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
import java.util.Optional;
3131

3232
import com.fasterxml.jackson.annotation.JsonView;
33-
import com.fasterxml.jackson.databind.JavaType;
34-
import com.fasterxml.jackson.databind.type.TypeFactory;
3533
import io.swagger.v3.core.util.AnnotationsUtils;
3634
import io.swagger.v3.core.util.Json;
3735
import io.swagger.v3.oas.annotations.Hidden;
@@ -331,10 +329,6 @@ private boolean isExplodable(io.swagger.v3.oas.annotations.Parameter p) {
331329
return explode;
332330
}
333331

334-
private JavaType constructType(Type type) {
335-
return TypeFactory.defaultInstance().constructType(type);
336-
}
337-
338332
private boolean isFile(Class type) {
339333
return FILE_TYPES.stream().anyMatch(clazz -> clazz.isAssignableFrom(type));
340334
}

0 commit comments

Comments
 (0)