Open cc-jhr opened 5 years ago
Any plans regarding this feature?
Hi @atlatosPonga, thank you for your interest in the project. There are currently no concrete plans for the implementation or the timing of the implementation. Pull requests are always welcome ;)
Is your feature request related to one or multiple existing converters? SpringConverter
Describe the solution you'd like Spring allows query parameter definitions by simply passing an object.
On extracting query parameters every controller method should be check for parameters (objects, not interfaces) without any spring annotation. The limitation to the usual spring controller method annotations is important, because the parameter could have a JSR-303 annotation or the like.
Easiest way to to get on all properties without having to do the reflection manually might be to serialize the type as json and and then extract the paths from the json. Suggestion for seriallization lib could be klaxon or moshi
Unchecked:
Additional context Simple objects
Nested object
Extract query parameter names from json:
Must result in three query parameters:
a
b.a
b.c