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
Hey
I'm using spring-boot 3.1.1 and springdoc-openapi 2.1.0
When annotating the Pageable interface with @ParameterObject, everything works smoothly for a traditional build, with parameters being generated as expected:
"parameters": [
{
"name": "productId",
...
},
{
"name": "userId",
...
},
{
"name": "page",
"in": "query",
"description": "Zero-based page index (0..N)",
"required": false,
"schema": {
"minimum": 0,
"type": "integer",
"default": 0
}
},
{
"name": "size",
"in": "query",
"description": "The size of the page to be returned",
"required": false,
"schema": {
"minimum": 1,
"type": "integer",
"default": 20
}
},
{
"name": "sort",
"in": "query",
"description": "Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.",
"required": false,
"schema": {
"type": "array",
"items": {
"type": "string"
}
}
}
],
But if running a native image, this part is missing from the generated spec:
Describe the bug
Hey
I'm using spring-boot 3.1.1 and springdoc-openapi 2.1.0
When annotating the Pageable interface with @ParameterObject, everything works smoothly for a traditional build, with parameters being generated as expected:
But if running a native image, this part is missing from the generated spec:
To Reproduce
spring-boot-starter-parent 3.1.1
springdoc-openapi-starter-webmvc-ui 2.1.0
mvn -Pnative spring-boot:build-image
Expected behavior
It should work on a native-image
Screenshots
regular build:
native:
Additional context
I've tried to add ParameterObject in reflection and serialization configs but no luck
The text was updated successfully, but these errors were encountered: