Closed mustaphazorgati closed 9 months ago
Hi @mustaphazorgati, you are really stretching the APIs to the limits :)) Surely, if that works in spring then we should support it. I wonder how spring does the deserialisation of the complex request param into a POJO. This is probably something defferent than request body handling, where the jackson kicks in with it's super complex logic. If you could investigate and provide some clues, or even a PR, that would be awesome.
Hi @jmisur,
Hi @mustaphazorgati, you are really stretching the APIs to the limits :)) I'll take that as a compliment. Thank you :)
I will have a look over the weekend. Maybe I can already create a PR.
Talk to you soon mate!
Hey @jmisur,
today we've used the PropertyEditorSupport in order to pass a complex data structure as a query parameter.
Unfortunately the documentation did not behave as we expected.
Controller method signature:
spring-rest-auto-docs
will generate the following documentation for that method signature:Since the PriorityColumnHeaderRepresentationModel is a complex data structure we expected that the documentation will flatten the PriorityColumnHeaderRepresentationModel, like it's done for e.g. a RequestBody.
In this context we expected this:
I am willing to extend the RequestParametersSnippet to flatten complex data structures which are passed as
@RequestParam
. Before I do that I'd love to get your opinion on this modification to that snippet.Furthermore I think that the CI has to be fixed before I get started, so that we can integrate this soon ;)