From 37f8b61e0897881b3788293b83a186440b190431 Mon Sep 17 00:00:00 2001 From: bnasslah Date: Fri, 27 May 2022 16:33:15 +0200 Subject: [PATCH] CHANGELOG.md update --- CHANGELOG.md | 21 ++++++ pom.xml | 2 +- .../api/app1/TestApplicationTests.java | 4 +- .../src/test/resources/results/app146-1.json | 63 +++++++++++------ .../src/test/resources/results/app147-1.json | 63 +++++++++++------ .../src/test/resources/results/app148-2.json | 63 +++++++++++------ .../src/test/resources/results/app186.json | 68 ++++++++++++------- 7 files changed, 194 insertions(+), 90 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 908c325e4..9892faaf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,27 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.6.9] - 2022-05-22 +### Added +- #1664 - Add Schema properties support in method-level @RequestBody +- #1181 - Initial OpenAPI 3.1 support +- #1651 - Ease group declaration through code or properties with actuators +### Changed +- upgrade to spring-boot 2.7.0 +- upgrade swagger-ui: 4.11.1 +- upgrade classgraph: 4.8.147 +- upgrade spring-native: 0.11.5 +- upgrade spring-cloud-function: 3.2.4 +### Fixed +- #1663 - @Schema annotation with type String and allowableValues set doesn't generate enum drop-down in swagger-ui after upgrading from 1.6.6 (when Spring custom converter is used) +- #1655 - OpenAPIService is using ObjectMapper without configured modules since SpringDoc 1.6.7. +- #1648 - Tags with only name provided are being added to the openAPI.tags field. +- #1641 - ConcurrentModificationException when querying /v3/api-docs/{group} concurrently for different groups +- #1634 - Generating doc for entities with map attribute does not work +- #1633 - GroupedOpenApi.builder addOpenApiCustomiser execution order is reversed +- #1630 - Remove repeated HttpSession +- #1659 - fix oauth redirection when used in spring-native + ## [1.6.8] - 2022-04-22 ### Added - #1616 - Add global customizer and filters diff --git a/pom.xml b/pom.xml index e1a5dccf2..c2626665e 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ org.springframework.boot spring-boot-starter-parent - 2.6.7 + 2.7.0 diff --git a/springdoc-openapi-native/src/test/java/test/org/springdoc/api/app1/TestApplicationTests.java b/springdoc-openapi-native/src/test/java/test/org/springdoc/api/app1/TestApplicationTests.java index 50a5dbc96..6ef6d2d29 100644 --- a/springdoc-openapi-native/src/test/java/test/org/springdoc/api/app1/TestApplicationTests.java +++ b/springdoc-openapi-native/src/test/java/test/org/springdoc/api/app1/TestApplicationTests.java @@ -22,8 +22,6 @@ package test.org.springdoc.api.app1; -import org.junit.jupiter.api.Test; - import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.test.context.SpringBootTest; @@ -33,7 +31,7 @@ class TestApplicationTests { @SpringBootConfiguration static class SpringDocTestApp {} - @Test + //@Test void contextLoads() {} } diff --git a/springdoc-openapi-webflux-core/src/test/resources/results/app146-1.json b/springdoc-openapi-webflux-core/src/test/resources/results/app146-1.json index 92c2f3cb2..1996d2ae4 100644 --- a/springdoc-openapi-webflux-core/src/test/resources/results/app146-1.json +++ b/springdoc-openapi-webflux-core/src/test/resources/results/app146-1.json @@ -26,7 +26,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_5", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name", "parameters": [ { "name": "name", @@ -64,7 +65,8 @@ "tags": [ "Actuator" ], - "operationId": "handle", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name_2", "parameters": [ { "name": "name", @@ -112,7 +114,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1_1", + "summary": "Actuator web endpoint 'threaddump'", + "operationId": "threaddump", "responses": { "200": { "description": "OK", @@ -147,7 +150,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1", + "summary": "Actuator web endpoint 'scheduledtasks'", + "operationId": "scheduledtasks", "responses": { "200": { "description": "OK", @@ -177,7 +181,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_2", + "summary": "Actuator web endpoint 'metrics-requiredMetricName'", + "operationId": "metrics-requiredMetricName", "parameters": [ { "name": "requiredMetricName", @@ -217,7 +222,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_3", + "summary": "Actuator web endpoint 'metrics'", + "operationId": "metrics", "responses": { "200": { "description": "OK", @@ -247,7 +253,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_4", + "summary": "Actuator web endpoint 'mappings'", + "operationId": "mappings", "responses": { "200": { "description": "OK", @@ -277,7 +284,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_6", + "summary": "Actuator web endpoint 'loggers'", + "operationId": "loggers", "responses": { "200": { "description": "OK", @@ -307,7 +315,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_7", + "summary": "Actuator web endpoint 'info'", + "operationId": "info", "responses": { "200": { "description": "OK", @@ -337,7 +346,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_8", + "summary": "Actuator web endpoint 'heapdump'", + "operationId": "heapdump", "responses": { "200": { "description": "OK", @@ -357,7 +367,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_9", + "summary": "Actuator web endpoint 'health'", + "operationId": "health", "responses": { "200": { "description": "OK", @@ -387,7 +398,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_10", + "summary": "Actuator web endpoint 'env-toMatch'", + "operationId": "env-toMatch", "parameters": [ { "name": "toMatch", @@ -427,7 +439,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_11", + "summary": "Actuator web endpoint 'env'", + "operationId": "env", "responses": { "200": { "description": "OK", @@ -457,7 +470,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_12", + "summary": "Actuator web endpoint 'configprops-prefix'", + "operationId": "configprops-prefix", "parameters": [ { "name": "prefix", @@ -497,7 +511,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_13", + "summary": "Actuator web endpoint 'configprops'", + "operationId": "configprops", "responses": { "200": { "description": "OK", @@ -527,7 +542,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_14", + "summary": "Actuator web endpoint 'conditions'", + "operationId": "conditions", "responses": { "200": { "description": "OK", @@ -557,7 +573,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_15", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache", "parameters": [ { "name": "cache", @@ -595,7 +612,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_19", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache_2", "parameters": [ { "name": "cache", @@ -635,7 +653,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_16", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches", "responses": { "200": { "description": "OK", @@ -663,7 +682,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_18", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches_2", "responses": { "200": { "description": "OK", @@ -683,7 +703,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_17", + "summary": "Actuator web endpoint 'beans'", + "operationId": "beans", "responses": { "200": { "description": "OK", diff --git a/springdoc-openapi-webflux-core/src/test/resources/results/app147-1.json b/springdoc-openapi-webflux-core/src/test/resources/results/app147-1.json index b049d12c0..b70f5d11a 100644 --- a/springdoc-openapi-webflux-core/src/test/resources/results/app147-1.json +++ b/springdoc-openapi-webflux-core/src/test/resources/results/app147-1.json @@ -26,7 +26,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_5", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name", "parameters": [ { "name": "name", @@ -64,7 +65,8 @@ "tags": [ "Actuator" ], - "operationId": "handle", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name_2", "parameters": [ { "name": "name", @@ -112,7 +114,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1_1", + "summary": "Actuator web endpoint 'threaddump'", + "operationId": "threaddump", "responses": { "200": { "description": "OK", @@ -147,7 +150,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1", + "summary": "Actuator web endpoint 'scheduledtasks'", + "operationId": "scheduledtasks", "responses": { "200": { "description": "OK", @@ -177,7 +181,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_2", + "summary": "Actuator web endpoint 'metrics-requiredMetricName'", + "operationId": "metrics-requiredMetricName", "parameters": [ { "name": "requiredMetricName", @@ -217,7 +222,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_3", + "summary": "Actuator web endpoint 'metrics'", + "operationId": "metrics", "responses": { "200": { "description": "OK", @@ -247,7 +253,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_4", + "summary": "Actuator web endpoint 'mappings'", + "operationId": "mappings", "responses": { "200": { "description": "OK", @@ -277,7 +284,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_6", + "summary": "Actuator web endpoint 'loggers'", + "operationId": "loggers", "responses": { "200": { "description": "OK", @@ -307,7 +315,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_7", + "summary": "Actuator web endpoint 'info'", + "operationId": "info", "responses": { "200": { "description": "OK", @@ -337,7 +346,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_8", + "summary": "Actuator web endpoint 'heapdump'", + "operationId": "heapdump", "responses": { "200": { "description": "OK", @@ -357,7 +367,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_9", + "summary": "Actuator web endpoint 'health'", + "operationId": "health", "responses": { "200": { "description": "OK", @@ -387,7 +398,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_10", + "summary": "Actuator web endpoint 'env-toMatch'", + "operationId": "env-toMatch", "parameters": [ { "name": "toMatch", @@ -427,7 +439,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_11", + "summary": "Actuator web endpoint 'env'", + "operationId": "env", "responses": { "200": { "description": "OK", @@ -457,7 +470,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_12", + "summary": "Actuator web endpoint 'configprops-prefix'", + "operationId": "configprops-prefix", "parameters": [ { "name": "prefix", @@ -497,7 +511,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_13", + "summary": "Actuator web endpoint 'configprops'", + "operationId": "configprops", "responses": { "200": { "description": "OK", @@ -527,7 +542,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_14", + "summary": "Actuator web endpoint 'conditions'", + "operationId": "conditions", "responses": { "200": { "description": "OK", @@ -557,7 +573,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_15", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache", "parameters": [ { "name": "cache", @@ -595,7 +612,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_19", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache_2", "parameters": [ { "name": "cache", @@ -635,7 +653,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_16", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches", "responses": { "200": { "description": "OK", @@ -663,7 +682,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_18", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches_2", "responses": { "200": { "description": "OK", @@ -683,7 +703,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_17", + "summary": "Actuator web endpoint 'beans'", + "operationId": "beans", "responses": { "200": { "description": "OK", diff --git a/springdoc-openapi-webflux-core/src/test/resources/results/app148-2.json b/springdoc-openapi-webflux-core/src/test/resources/results/app148-2.json index 82983a583..dc2fdc99c 100644 --- a/springdoc-openapi-webflux-core/src/test/resources/results/app148-2.json +++ b/springdoc-openapi-webflux-core/src/test/resources/results/app148-2.json @@ -26,7 +26,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_5", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name", "parameters": [ { "name": "name", @@ -64,7 +65,8 @@ "tags": [ "Actuator" ], - "operationId": "handle", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name_2", "parameters": [ { "name": "name", @@ -112,7 +114,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1_1", + "summary": "Actuator web endpoint 'threaddump'", + "operationId": "threaddump", "responses": { "200": { "description": "OK", @@ -147,7 +150,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1", + "summary": "Actuator web endpoint 'scheduledtasks'", + "operationId": "scheduledtasks", "responses": { "200": { "description": "OK", @@ -177,7 +181,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_2", + "summary": "Actuator web endpoint 'metrics-requiredMetricName'", + "operationId": "metrics-requiredMetricName", "parameters": [ { "name": "requiredMetricName", @@ -217,7 +222,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_3", + "summary": "Actuator web endpoint 'metrics'", + "operationId": "metrics", "responses": { "200": { "description": "OK", @@ -247,7 +253,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_4", + "summary": "Actuator web endpoint 'mappings'", + "operationId": "mappings", "responses": { "200": { "description": "OK", @@ -277,7 +284,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_6", + "summary": "Actuator web endpoint 'loggers'", + "operationId": "loggers", "responses": { "200": { "description": "OK", @@ -307,7 +315,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_7", + "summary": "Actuator web endpoint 'info'", + "operationId": "info", "responses": { "200": { "description": "OK", @@ -337,7 +346,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_8", + "summary": "Actuator web endpoint 'heapdump'", + "operationId": "heapdump", "responses": { "200": { "description": "OK", @@ -357,7 +367,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_9", + "summary": "Actuator web endpoint 'health'", + "operationId": "health", "responses": { "200": { "description": "OK", @@ -387,7 +398,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_10", + "summary": "Actuator web endpoint 'env-toMatch'", + "operationId": "env-toMatch", "parameters": [ { "name": "toMatch", @@ -427,7 +439,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_11", + "summary": "Actuator web endpoint 'env'", + "operationId": "env", "responses": { "200": { "description": "OK", @@ -457,7 +470,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_12", + "summary": "Actuator web endpoint 'configprops-prefix'", + "operationId": "configprops-prefix", "parameters": [ { "name": "prefix", @@ -497,7 +511,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_13", + "summary": "Actuator web endpoint 'configprops'", + "operationId": "configprops", "responses": { "200": { "description": "OK", @@ -527,7 +542,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_14", + "summary": "Actuator web endpoint 'conditions'", + "operationId": "conditions", "responses": { "200": { "description": "OK", @@ -557,7 +573,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_15", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache", "parameters": [ { "name": "cache", @@ -595,7 +612,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_19", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache_2", "parameters": [ { "name": "cache", @@ -635,7 +653,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_16", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches", "responses": { "200": { "description": "OK", @@ -663,7 +682,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_18", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches_2", "responses": { "200": { "description": "OK", @@ -683,7 +703,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_17", + "summary": "Actuator web endpoint 'beans'", + "operationId": "beans", "responses": { "200": { "description": "OK", diff --git a/springdoc-openapi-webflux-core/src/test/resources/results/app186.json b/springdoc-openapi-webflux-core/src/test/resources/results/app186.json index 2b4d74f14..6f5111c7a 100644 --- a/springdoc-openapi-webflux-core/src/test/resources/results/app186.json +++ b/springdoc-openapi-webflux-core/src/test/resources/results/app186.json @@ -26,7 +26,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_5", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name", "parameters": [ { "name": "name", @@ -64,7 +65,8 @@ "tags": [ "Actuator" ], - "operationId": "handle", + "summary": "Actuator web endpoint 'loggers-name'", + "operationId": "loggers-name_2", "parameters": [ { "name": "name", @@ -112,7 +114,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1_1", + "summary": "Actuator web endpoint 'threaddump'", + "operationId": "threaddump", "responses": { "200": { "description": "OK", @@ -147,7 +150,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_1", + "summary": "Actuator web endpoint 'scheduledtasks'", + "operationId": "scheduledtasks", "responses": { "200": { "description": "OK", @@ -177,7 +181,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_2", + "summary": "Actuator web endpoint 'metrics-requiredMetricName'", + "operationId": "metrics-requiredMetricName", "parameters": [ { "name": "requiredMetricName", @@ -217,7 +222,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_3", + "summary": "Actuator web endpoint 'metrics'", + "operationId": "metrics", "responses": { "200": { "description": "OK", @@ -247,7 +253,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_4", + "summary": "Actuator web endpoint 'mappings'", + "operationId": "mappings", "responses": { "200": { "description": "OK", @@ -277,7 +284,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_6", + "summary": "Actuator web endpoint 'loggers'", + "operationId": "loggers", "responses": { "200": { "description": "OK", @@ -307,7 +315,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_7", + "summary": "Actuator web endpoint 'info'", + "operationId": "info", "responses": { "200": { "description": "OK", @@ -337,7 +346,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_8", + "summary": "Actuator web endpoint 'heapdump'", + "operationId": "heapdump", "responses": { "200": { "description": "OK", @@ -357,7 +367,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_9", + "summary": "Actuator web endpoint 'health-path'", + "operationId": "health-path", "parameters": [ { "name": "*path", @@ -397,7 +408,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_10", + "summary": "Actuator web endpoint 'health'", + "operationId": "health", "responses": { "200": { "description": "OK", @@ -427,7 +439,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_11", + "summary": "Actuator web endpoint 'env-toMatch'", + "operationId": "env-toMatch", "parameters": [ { "name": "toMatch", @@ -467,7 +480,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_12", + "summary": "Actuator web endpoint 'env'", + "operationId": "env", "responses": { "200": { "description": "OK", @@ -497,7 +511,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_13", + "summary": "Actuator web endpoint 'configprops-prefix'", + "operationId": "configprops-prefix", "parameters": [ { "name": "prefix", @@ -537,7 +552,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_14", + "summary": "Actuator web endpoint 'configprops'", + "operationId": "configprops", "responses": { "200": { "description": "OK", @@ -567,7 +583,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_15", + "summary": "Actuator web endpoint 'conditions'", + "operationId": "conditions", "responses": { "200": { "description": "OK", @@ -597,7 +614,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_16", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache", "parameters": [ { "name": "cache", @@ -635,7 +653,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_20", + "summary": "Actuator web endpoint 'caches-cache'", + "operationId": "caches-cache_2", "parameters": [ { "name": "cache", @@ -675,7 +694,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_17", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches", "responses": { "200": { "description": "OK", @@ -703,7 +723,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_19", + "summary": "Actuator web endpoint 'caches'", + "operationId": "caches_2", "responses": { "200": { "description": "OK", @@ -723,7 +744,8 @@ "tags": [ "Actuator" ], - "operationId": "handle_18", + "summary": "Actuator web endpoint 'beans'", + "operationId": "beans", "responses": { "200": { "description": "OK", @@ -813,4 +835,4 @@ } } } -} \ No newline at end of file +}