-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add statement about of Pageable to documentation #26
Comments
Note: Both interface and annotation are provided by org.springframework.data:spring-data-rest-core |
I'd like to see something like this as well, but not specific for What I'd like to see is a HikakuConfig taking a list of something like What do you guys think? Edit: Actually, all current |
Hi @jrehwaldt, First of all, as stated in the list of currently not supported features in the README.md of the spring converter, query parameter based on classes/interfaces are currently not supported in general. So depending on the solution for that, this might solve the cases mentioned above already. It might make sense to implement the general approach before we focus on specific interfaces or classes. From my perspective the PagaeableDifferenceEvaluator idea wouldn't work. Hikaku is designed to convert a specification or an implementation to an internal domain model of a REST endpoint. After that the model for the specification is compared to the model of the implementation in the core. At the time of the actual comparison, there is therefore no additional information about the implementation, such as class types and the like. This is intentional. However I like the idea of creating rules dynamically for the config to ignore specific bits, instead of static rules. |
Created an issue for the general case. See #47 |
As I see it the proposal from #47 unfortunately doesn't solve either the general nor the original issue.
A truly general solution would be to allow deriving arbitrary parameters from unknown objects declared in endpoint mappings, something like |
Setup information
hikaku version: 2.0.0-SNAPSHOT
implementation converter: SpringConverter
Describe the bug
Spring data supports the idea of Pageable. A pageable is an object build by request parameter, supporting page, size and sort (parameter names are changeable). These parameters might be part of an api, but are not explizit mapped to query parameter. The documentation says "Query Parameter based on an object" are not supported, but I think a Pageable should be mentioned explizitly.
Expected behavior
Add support for Pageable or add a note that Pageable are currently not supported in hikaku.
Code samples:
Can you provide specifications or code snippets?
The text was updated successfully, but these errors were encountered: