You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
After upgrading from springdoc 2.1.0 to springdoc 2.2.0, a new behavior is occurring that is breaking our openapi doc generated.
If you are using Jakarta Collections validator on controller query parameters (for example @SiZe in my case) the minItems and maxItems are added to the openapi doc generated as expected but it is also adding now the maximum/minimum (with the same number as minItems and maxItems) to the type of the items contained in the collection.
To Reproduce
Steps to reproduce the behavior:
Use @SiZe on Set for example for a query parameter in your controller methods
What version of spring-boot you are using?
spring-boot 3.1.2
What modules and versions of springdoc-openapi are you using?
springdoc-openapi-starter-common-2.2.0.jar
springdoc-openapi-starter-webflux-api-2.2.0.jar
What is the actual and the expected result using OpenAPI Description (yml or json)?
actual:
I found the issue inside the swagger-core project: swagger-api/swagger-core#4462
We can close this issue since there is nothing we can do in this project I believe.
Describe the bug
After upgrading from springdoc 2.1.0 to springdoc 2.2.0, a new behavior is occurring that is breaking our openapi doc generated.
If you are using Jakarta Collections validator on controller query parameters (for example @SiZe in my case) the minItems and maxItems are added to the openapi doc generated as expected but it is also adding now the maximum/minimum (with the same number as minItems and maxItems) to the type of the items contained in the collection.
To Reproduce
Steps to reproduce the behavior:
Use @SiZe on Set for example for a query parameter in your controller methods
spring-boot 3.1.2
springdoc-openapi-starter-common-2.2.0.jar
springdoc-openapi-starter-webflux-api-2.2.0.jar
actual:
expected:
Expected behavior
@SiZe should only affect the number of items in the collection not the size of the type contained in the collection
Screenshots
Additional context
We are using Kotlin
The text was updated successfully, but these errors were encountered: