diff --git a/pom.xml b/pom.xml index 1b628c2fc..07f2edf24 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,7 @@ 0.7.0 1.5.0 - 2.2.41 + 2.2.42 5.31.0 1.13.1 0.9.1 diff --git a/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.0.1/app102.json b/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.0.1/app102.json index d7479b41b..e77bbf251 100644 --- a/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.0.1/app102.json +++ b/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.0.1/app102.json @@ -32,6 +32,7 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { + "minLength": 1, "type": "string" } }, diff --git a/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.1.0/app102.json b/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.1.0/app102.json index f43ac6133..2a6c70e57 100644 --- a/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.1.0/app102.json +++ b/springdoc-openapi-starter-webflux-api/src/test/resources/results/3.1.0/app102.json @@ -32,7 +32,8 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } }, { diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app102.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app102.json index 0f17e72f0..1981b04bf 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app102.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app102.json @@ -32,6 +32,7 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { + "minLength": 1, "type": "string" } }, diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app105-4.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app105-4.json index 76d34675f..9fe3e74ae 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app105-4.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app105-4.json @@ -35,6 +35,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app121.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app121.json index 0520da018..2390ac67c 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app121.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app121.json @@ -32,6 +32,7 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { + "minLength": 1, "type": "string" } }, diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app14.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app14.json index 9bd24ef37..235e0fe82 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app14.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app14.json @@ -50,6 +50,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-GB.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-GB.json index 90ea79632..978d6dd12 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-GB.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-GB.json @@ -49,6 +49,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-US.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-US.json index d65b8eca2..7e6decf59 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-US.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-en-US.json @@ -49,6 +49,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-fr-FR.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-fr-FR.json index d10b56632..4c7e59f54 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-fr-FR.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app171-fr-FR.json @@ -49,6 +49,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app18.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app18.json index c1c84699a..66a05b228 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app18.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app18.json @@ -23,6 +23,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -54,6 +55,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -149,6 +151,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -180,6 +183,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app19.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app19.json index 5de6c880a..5cbef60a5 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app19.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app19.json @@ -52,6 +52,7 @@ "content": { "application/json": { "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app209.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app209.json index c1c84699a..b93993fbf 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app209.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app209.json @@ -23,6 +23,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -54,6 +55,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -149,6 +151,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -180,6 +183,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -201,3 +205,4 @@ }, "components": {} } + \ No newline at end of file diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app21.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app21.json index 2d53bffbf..db5cde3ab 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app21.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app21.json @@ -24,6 +24,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app23.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app23.json index 22902fadc..4cb10bb74 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app23.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app23.json @@ -24,6 +24,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-en-US.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-en-US.json index d65b8eca2..7e6decf59 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-en-US.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-en-US.json @@ -49,6 +49,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-fr-CA.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-fr-CA.json index d10b56632..4c7e59f54 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-fr-CA.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-fr-CA.json @@ -49,6 +49,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-zh-CN.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-zh-CN.json index d65b8eca2..7e6decf59 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-zh-CN.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app238-zh-CN.json @@ -49,6 +49,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app24.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app24.json index 885b7d457..181e3bf01 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app24.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.0.1/app24.json @@ -30,6 +30,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app102.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app102.json index 35eeb5ea9..ed29774ae 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app102.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app102.json @@ -32,7 +32,8 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } }, { diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app105-4.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app105-4.json index f393a5154..ccf0baf41 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app105-4.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app105-4.json @@ -35,7 +35,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app121.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app121.json index 3a9f3652b..c184ff2da 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app121.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app121.json @@ -32,7 +32,8 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } }, { diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app14.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app14.json index e2bb2165d..141b2f485 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app14.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app14.json @@ -50,7 +50,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-GB.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-GB.json index 1475f7c03..3c110703e 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-GB.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-GB.json @@ -49,7 +49,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-US.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-US.json index e32639950..e36a4f0f6 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-US.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-en-US.json @@ -49,7 +49,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-fr-FR.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-fr-FR.json index 4b4c1bfb0..ffc7ce523 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-fr-FR.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app171-fr-FR.json @@ -49,7 +49,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app18.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app18.json index 0142d8173..8cb518c8f 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app18.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app18.json @@ -23,7 +23,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -54,7 +55,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -149,7 +151,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -180,7 +183,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app19.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app19.json index b27e184d4..3114a411b 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app19.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app19.json @@ -52,7 +52,8 @@ "content": { "application/json": { "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } }, @@ -104,4 +105,4 @@ } }, "components": {} -} +} \ No newline at end of file diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app209.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app209.json index 0142d8173..8cb518c8f 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app209.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app209.json @@ -23,7 +23,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -54,7 +55,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -149,7 +151,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -180,7 +183,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app21.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app21.json index 136b34d94..75fb1e617 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app21.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app21.json @@ -24,7 +24,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app23.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app23.json index 25d752698..7f16dc76e 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app23.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app23.json @@ -24,7 +24,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-en-US.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-en-US.json index e32639950..e36a4f0f6 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-en-US.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-en-US.json @@ -49,7 +49,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-fr-CA.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-fr-CA.json index 37e48614e..222aa1548 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-fr-CA.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-fr-CA.json @@ -49,7 +49,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-zh-CN.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-zh-CN.json index e32639950..e36a4f0f6 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-zh-CN.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app238-zh-CN.json @@ -49,7 +49,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app24.json b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app24.json index fd8082586..5ca1729ba 100644 --- a/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app24.json +++ b/springdoc-openapi-starter-webmvc-api/src/test/resources/results/3.1.0/app24.json @@ -30,7 +30,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.0.1/app68-4.json b/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.0.1/app68-4.json index 76d34675f..9fe3e74ae 100644 --- a/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.0.1/app68-4.json +++ b/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.0.1/app68-4.json @@ -35,6 +35,7 @@ "in": "query", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.1.0/app68-4.json b/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.1.0/app68-4.json index f393a5154..ccf0baf41 100644 --- a/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.1.0/app68-4.json +++ b/springdoc-openapi-tests/springdoc-openapi-actuator-webmvc-tests/src/test/resources/results/3.1.0/app68-4.json @@ -35,7 +35,8 @@ "in": "query", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.0.1/app18.json b/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.0.1/app18.json index 54719949c..d46aa228b 100644 --- a/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.0.1/app18.json +++ b/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.0.1/app18.json @@ -25,6 +25,7 @@ "description": "Description for abc", "required": true, "schema": { + "minLength": 1, "type": "string" }, "example": "def" @@ -69,6 +70,7 @@ "description": "Description for abc", "required": true, "schema": { + "minLength": 1, "type": "string" }, "example": "def" diff --git a/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.1.0/app18.json b/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.1.0/app18.json index e730d5a60..073f17c40 100644 --- a/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.1.0/app18.json +++ b/springdoc-openapi-tests/springdoc-openapi-data-rest-tests/src/test/resources/results/3.1.0/app18.json @@ -25,7 +25,8 @@ "description": "Description for abc", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 }, "example": "def" }, @@ -69,7 +70,8 @@ "description": "Description for abc", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 }, "example": "def" }, diff --git a/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v30/app2/CarController.groovy b/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v30/app2/CarController.groovy index b914db941..1482ba0d5 100644 --- a/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v30/app2/CarController.groovy +++ b/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v30/app2/CarController.groovy @@ -42,7 +42,7 @@ class CarController { } @GetMapping(path = '/cars') - List getCars(@ParameterObject CarsFilter filter) { + List getCars(@ParameterObject CarsFilter filter) { return carService.getCars() } diff --git a/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v31/app2/CarController.groovy b/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v31/app2/CarController.groovy index ebca3279b..3dbc5257c 100644 --- a/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v31/app2/CarController.groovy +++ b/springdoc-openapi-tests/springdoc-openapi-groovy-tests/src/test/groovy/test/org/springdoc/api/v31/app2/CarController.groovy @@ -35,14 +35,14 @@ import org.springframework.web.bind.annotation.RestController @RestController class CarController { - test.org.springdoc.api.v31.app2.CarService carService + CarService carService - CarController(test.org.springdoc.api.v31.app2.CarService carService) { + CarController(CarService carService) { this.carService = carService } @GetMapping(path = '/cars') - List getCars(@ParameterObject CarsFilter filter) { + List getCars(@ParameterObject CarsFilter filter) { return carService.getCars() } @@ -51,7 +51,7 @@ class CarController { } @GetMapping(path = 'cars/{carId}') - test.org.springdoc.api.v31.app2.Car getCar(@PathVariable(value = 'carId') Long carId) { + Car getCar(@PathVariable(value = 'carId') Long carId) { return carService.getCar(carId) } } diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app102.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app102.json index 83c8687ea..c308be4cb 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app102.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app102.json @@ -41,6 +41,7 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { + "minLength": 1, "type": "string" } }, diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app105-4.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app105-4.json index e249a3bf6..9b586f2bb 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app105-4.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app105-4.json @@ -38,6 +38,7 @@ "description": "the name", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app121.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app121.json index 2d95f9194..5f11af1f5 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app121.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app121.json @@ -41,6 +41,7 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { + "minLength": 1, "type": "string" } }, diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app14.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app14.json index 461f084a7..433ad8c2c 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app14.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app14.json @@ -54,6 +54,7 @@ "description": "the name", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app18.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app18.json index 949fa4cc4..43ff91eb1 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app18.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app18.json @@ -32,6 +32,7 @@ "description": "the name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -50,22 +51,25 @@ } } }, - "/persons2": { + "/persons7": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 2 string.", - "description": "Persons 2 string.", - "operationId": "persons2", + "summary": "Persons 7 string.", + "description": "Persons 7 string.", + "operationId": "persons7", "parameters": [ { - "name": "name", + "name": "age", "in": "query", - "description": "persons name", + "description": "the age", "required": true, "schema": { - "type": "string" + "minimum": 0, + "exclusiveMinimum": true, + "type": "integer", + "format": "int32" } } ], @@ -83,14 +87,14 @@ } } }, - "/persons3": { + "/persons6": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 3 string.", - "description": "Persons 3 string.", - "operationId": "persons3", + "summary": "Persons 6 string.", + "description": "Persons 6 string.", + "operationId": "persons6", "parameters": [ { "name": "name", @@ -98,6 +102,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -116,14 +121,14 @@ } } }, - "/persons4": { + "/persons5": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 4 string.", - "description": "Persons 4 string.", - "operationId": "persons4", + "summary": "Persons 5 string.", + "description": "Persons 5 string.", + "operationId": "persons5", "parameters": [ { "name": "age", @@ -131,7 +136,7 @@ "description": "the age", "required": true, "schema": { - "minimum": 0, + "maximum": 0, "type": "integer", "format": "int32" } @@ -151,14 +156,14 @@ } } }, - "/persons5": { + "/persons4": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 5 string.", - "description": "Persons 5 string.", - "operationId": "persons5", + "summary": "Persons 4 string.", + "description": "Persons 4 string.", + "operationId": "persons4", "parameters": [ { "name": "age", @@ -166,7 +171,7 @@ "description": "the age", "required": true, "schema": { - "maximum": 0, + "minimum": 0, "type": "integer", "format": "int32" } @@ -186,14 +191,14 @@ } } }, - "/persons6": { + "/persons3": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 6 string.", - "description": "Persons 6 string.", - "operationId": "persons6", + "summary": "Persons 3 string.", + "description": "Persons 3 string.", + "operationId": "persons3", "parameters": [ { "name": "name", @@ -201,6 +206,7 @@ "description": "persons name", "required": true, "schema": { + "minLength": 1, "type": "string" } } @@ -219,25 +225,23 @@ } } }, - "/persons7": { + "/persons2": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 7 string.", - "description": "Persons 7 string.", - "operationId": "persons7", + "summary": "Persons 2 string.", + "description": "Persons 2 string.", + "operationId": "persons2", "parameters": [ { - "name": "age", + "name": "name", "in": "query", - "description": "the age", + "description": "persons name", "required": true, "schema": { - "minimum": 0, - "exclusiveMinimum": true, - "type": "integer", - "format": "int32" + "minLength": 1, + "type": "string" } } ], @@ -257,4 +261,4 @@ } }, "components": {} -} +} \ No newline at end of file diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app19.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app19.json index 5b0a90b8b..dd2dc29cd 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app19.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app19.json @@ -94,6 +94,7 @@ "content": { "application/json": { "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app21.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app21.json index dffb377e5..2a345c798 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app21.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app21.json @@ -26,6 +26,7 @@ "description": "the name", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app23.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app23.json index 1637d7918..5da3d64e8 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app23.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app23.json @@ -32,6 +32,7 @@ "description": "the name", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app24.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app24.json index 7595a7bd8..aa7195855 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app24.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.0.1/app24.json @@ -38,6 +38,7 @@ "description": "the name", "required": true, "schema": { + "minLength": 1, "type": "string" } } diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app102.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app102.json index 32abd9ef4..debffb3ed 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app102.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app102.json @@ -41,7 +41,8 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } }, { diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app105-4.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app105-4.json index deb8b4868..437cc19b9 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app105-4.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app105-4.json @@ -38,7 +38,8 @@ "description": "the name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app121.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app121.json index be1267d35..7a4d7346b 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app121.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app121.json @@ -41,7 +41,8 @@ "description": "parameter from child of RequestParams", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } }, { diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app14.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app14.json index ff15a730d..1c0c724dd 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app14.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app14.json @@ -32,7 +32,8 @@ "description": "the name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app18.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app18.json index a6b355091..414562e3a 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app18.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app18.json @@ -32,7 +32,8 @@ "description": "the name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -50,22 +51,24 @@ } } }, - "/persons2": { + "/persons7": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 2 string.", - "description": "Persons 2 string.", - "operationId": "persons2", + "summary": "Persons 7 string.", + "description": "Persons 7 string.", + "operationId": "persons7", "parameters": [ { - "name": "name", + "name": "age", "in": "query", - "description": "persons name", + "description": "the age", "required": true, "schema": { - "type": "string" + "type": "integer", + "format": "int32", + "exclusiveMinimum": 0 } } ], @@ -83,14 +86,14 @@ } } }, - "/persons3": { + "/persons6": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 3 string.", - "description": "Persons 3 string.", - "operationId": "persons3", + "summary": "Persons 6 string.", + "description": "Persons 6 string.", + "operationId": "persons6", "parameters": [ { "name": "name", @@ -98,7 +101,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -116,14 +120,14 @@ } } }, - "/persons4": { + "/persons5": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 4 string.", - "description": "Persons 4 string.", - "operationId": "persons4", + "summary": "Persons 5 string.", + "description": "Persons 5 string.", + "operationId": "persons5", "parameters": [ { "name": "age", @@ -133,7 +137,7 @@ "schema": { "type": "integer", "format": "int32", - "minimum": 0 + "maximum": 0 } } ], @@ -151,14 +155,14 @@ } } }, - "/persons5": { + "/persons4": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 5 string.", - "description": "Persons 5 string.", - "operationId": "persons5", + "summary": "Persons 4 string.", + "description": "Persons 4 string.", + "operationId": "persons4", "parameters": [ { "name": "age", @@ -168,7 +172,7 @@ "schema": { "type": "integer", "format": "int32", - "maximum": 0 + "minimum": 0 } } ], @@ -186,14 +190,14 @@ } } }, - "/persons6": { + "/persons3": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 6 string.", - "description": "Persons 6 string.", - "operationId": "persons6", + "summary": "Persons 3 string.", + "description": "Persons 3 string.", + "operationId": "persons3", "parameters": [ { "name": "name", @@ -201,7 +205,8 @@ "description": "persons name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], @@ -219,24 +224,23 @@ } } }, - "/persons7": { + "/persons2": { "get": { "tags": [ "hello-controller" ], - "summary": "Persons 7 string.", - "description": "Persons 7 string.", - "operationId": "persons7", + "summary": "Persons 2 string.", + "description": "Persons 2 string.", + "operationId": "persons2", "parameters": [ { - "name": "age", + "name": "name", "in": "query", - "description": "the age", + "description": "persons name", "required": true, "schema": { - "type": "integer", - "format": "int32", - "exclusiveMinimum": 0 + "type": "string", + "minLength": 1 } } ], @@ -256,4 +260,4 @@ } }, "components": {} -} +} \ No newline at end of file diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app19.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app19.json index 0b389b466..05f18e453 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app19.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app19.json @@ -94,7 +94,8 @@ "content": { "application/json": { "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } }, diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app21.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app21.json index 5b4a77699..b38e15f4b 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app21.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app21.json @@ -26,7 +26,8 @@ "description": "the name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app23.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app23.json index 503b37f1a..bbe23f4d1 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app23.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app23.json @@ -32,7 +32,8 @@ "description": "the name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ], diff --git a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app24.json b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app24.json index fba939cb2..7a11db8b8 100644 --- a/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app24.json +++ b/springdoc-openapi-tests/springdoc-openapi-javadoc-tests/src/test/resources/results/3.1.0/app24.json @@ -38,7 +38,8 @@ "description": "the name", "required": true, "schema": { - "type": "string" + "type": "string", + "minLength": 1 } } ],