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
@GET
@Path("/example")
public String example(@RestQuery @Parameter(style = ParameterStyle.DEEPOBJECT) Example id)
{
return "hurrah";
}
And then I have to provide custom ParamConverterProvider (and ParamConverter), that will deserialize my Example class from query param.
The problem I'm facing is that ParamConverter always constructs single Parameter from single queryParam.
But in case of deepobject I would need all the params that belong to my Parameter, type and location.
Does any 1 have an idea how (or if it is even possible) to implement this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
deepobject query params look something like

And they are part of official openapi 3.0 spec https://spec.openapis.org/oas/latest.html#style-values
Lets say I want to have a class something like
Then I would pass it in some rest method like so
And then I have to provide custom
ParamConverterProvider (and ParamConverter)
, that will deserialize myExample
class from query param.The problem I'm facing is that ParamConverter always constructs single Parameter from single queryParam.
But in case of deepobject I would need all the params that belong to my Parameter,
type
andlocation
.Does any 1 have an idea how (or if it is even possible) to implement this?
And I do not want to do something like this :)
Beta Was this translation helpful? Give feedback.
All reactions