-
-
Notifications
You must be signed in to change notification settings - Fork 336
Closed
Milestone
Description
In order to continue the recent improvements we have done in Spring's Jackson integration, we would like to add support for @JsonView
deserialization on request bodies as described in this issue.
The issue we have is that @JsonView
only targets ElementType.METHOD
and ElementType.FIELD
. Would you consider adding ElementType.PARAMETER
in order to allow us to support this kind of use case?
@RequestMapping(value = "/persons", consumes = APPLICATION_JSON_VALUE, method = RequestMethod.POST)
public ResponseEntity<Person> savePerson(@JsonView(View.Summary.class) @RequestBody Person p)
{
return new ResponseEntity<>(personRepository.save(p), HttpStatus.OK);
}
Metadata
Metadata
Assignees
Labels
No labels