We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What's the correct way to handle this?
/rest/clients -> returns json of List /rest/clients/id -> returns json of Client
The main docs say to use public static interface ClientMapper extends ObjectMapper {}
Should there then also be a public static interface ClientMapper extends ObjectMapper<List> {} ?
Would this not generate duplicate code?
The text was updated successfully, but these errors were encountered:
Yes, you need an ObjectMapper<List<Client>> too. There will be no duplicate in generated code. The deserializer for Client will be reused.
ObjectMapper<List<Client>>
Sorry, something went wrong.
Great, thanks
No branches or pull requests
What's the correct way to handle this?
/rest/clients -> returns json of List
/rest/clients/id -> returns json of Client
The main docs say to use
public static interface ClientMapper extends ObjectMapper {}
Should there then also be a
public static interface ClientMapper extends ObjectMapper<List> {} ?
Would this not generate duplicate code?
The text was updated successfully, but these errors were encountered: