- 
                Notifications
    You must be signed in to change notification settings 
- Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Ersin Er opened SPR-12501 and commented
#11815 added support for @JsonView for response bodies. The same can also be applied to request bodies as Jackson already supports @JsonView for deserialization.
@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);
}Affects: 4.1.2
Attachments:
- SPR-12501.patch (5.83 kB)
Issue Links:
- Integrate Jackson @JsonView [SPR-7156] #11815 Integrate Jackson @JsonView
- JsonView support for JMS [SPR-13237] #17828 JsonView support for JMS
- Jackson @JsonView deserialization support for @MessageMapping payloads [SPR-13265] #17856 Jackson @JsonViewdeserialization support for@MessageMappingpayloads
- Allow @JsonView to be used on meta-annotations on Rest methods [SPR-13268] #17859 Allow @JsonViewto be used on meta-annotations on Rest methods
4 votes, 9 watchers
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement