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
Here is generated json snippet which ignores filterProperty1 and filterValue as params. Not sure why ?
it does the same thing for /{filterProperty2}/{filterProperty3} when it generates it skips all of them.
Q&A (please complete the following information)
Content & configuration
@GetMapping(value = {
"/mine",
"/mine/{filterProperty1}/{filterValue}",
"/mine/{filterProperty1}/{filterProperty2}/{filterValue}",
"/mine/{filterProperty1}/{filterProperty2}/{filterProperty3}/{filterValue}"
})
@responsebody
public ResponseEntity getNestedFiltered(HttpServletRequest request) throws JsonProcessingException {
....
}
Example Swagger/OpenAPI definition:
# your YAML here
Here is generated json snippet which ignores filterProperty1 and filterValue as params. Not sure why ?
it does the same thing for /{filterProperty2}/{filterProperty3} when it generates it skips all of them.
"/preferences/mine/{filterProperty1}/{filterValue}" : {
"get" : {
"tags" : [ "Preferences" ],
"operationId" : "getNestedFiltered_1",
"responses" : {
"500" : {
"description" : "Internal Server Error",
"content" : {
"/" : {
"schema" : {
"type" : "string"
}
}
}
},
"413" : {
"description" : "Payload Too Large",
"content" : {
"/" : {
"schema" : {
"type" : "string"
}
}
}
},
Swagger-UI configuration options:
Describe the bug you're encountering
To reproduce...
Steps to reproduce the behavior:
Expected behavior
it should produce snippet as shown below.
"/preferences/mine/{filterProperty1}/{filterValue}" : {
"get" : {
"tags" : [ "Preferences" ],
"operationId" : "getNestedFiltered_1",
"parameters": [
{
"name": "filterProperty1",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "filterValue",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
]
responses" : {
"500" : {
"description" : "Internal Server Error",
"content" : {
"/" : {
"schema" : {
"type" : "string"
}
}
}
},
getNestedFiltered
Screenshots
Additional context or thoughts
The text was updated successfully, but these errors were encountered: