Skip to content

Commit e25f32b

Browse files
author
bnasslahsen
committed
code cleanup
1 parent a44f1b9 commit e25f32b

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

CHANGELOG.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ 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.2.31] - 2020-02-18
8+
## Added
9+
- Allow Request paremeters types to be ignored programatically
10+
- Added support to disable autotagging of @RestController Classes. Fixes #420.
11+
- Multiple Parameter Refs throws IllegalStateException (Duplicate key). Fixes #408
12+
- Support for properties to exclude packages and paths from documentation. Fixes #404
13+
- Support for kotlin. Deprecated. Fixes #414
14+
- Add Suppot for Hiding org.springframework.security.core.Authentication on ServerHttpResponse. Fixes #423.
15+
## Changed
16+
- @CookieValue parameter indents request body. Fixes #419
17+
- Solves Hateoas fields names mismatch. Fixes #401
18+
- Fixes #418 by adjusting the output for Links.
19+
- Upgrade swagger-ui to 3.25.0
20+
- Allow ModelAndView to be detected. Fixes #428.
21+
## Fixed
22+
- Discovery of MediaType producers inconsistent with Spring MVC behaviour. Fixes #426
23+
- Improve Reverse proxy compatibily for webflux. Fixes #435
724
## [1.2.30] - 2020-02-03
825
## Added
926
- Support REST Controllers with default empty @RequestMapping #378
@@ -12,9 +29,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1229
- Improve support of @Parameter Schema, in case of @RequestBody #396
1330
- Prevent swagger-ui default validation #393
1431
- @SecurityScheme `paramName` not accounted for the `name` #384
32+
- Warning on referenced example. Fixes #437
1533
## Fixed
1634
- Same operationId for overloaded methods using Groups, breaks swagger-ui collapsibles #399
17-
35+
- Duplicate tags if they are defined on @Operation annotation on swagger-ui. Fixes #436.
36+
- When using RestControllerAdvice, one of the responses description is missing and replaced with a default. Fixes #440
1837
## [1.2.29] - 2020-01-27
1938
## Added
2039
- Support for extensions on @ApiResponse #368

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ private void buildContentFromDoc(Components components, ApiResponses apiResponse
172172

173173
private void buildApiResponses(Components components, Method method, ApiResponses apiResponsesOp,
174174
MethodAttributes methodAttributes, boolean isGeneric) {
175-
if (!CollectionUtils.isEmpty(apiResponsesOp) && ((apiResponsesOp.size() != genericMapResponse.size() || isGeneric))) {
175+
if (!CollectionUtils.isEmpty(apiResponsesOp) && (apiResponsesOp.size() != genericMapResponse.size() || isGeneric)) {
176176
// API Responses at operation and @ApiResponse annotation
177177
for (Map.Entry<String, ApiResponse> entry : apiResponsesOp.entrySet()) {
178178
String httpCode = entry.getKey();

0 commit comments

Comments
 (0)