Closed
Description
Hi,
I found that when getting push rules for project, there is commit_committer_name_check
property from response missing in target DTO.
Could you take a look at it?
Also I was wondering that it might improved to map unknown properties to Map<String, Object>, like I can do with Jackcon Databind - please take a look below.
Thank you
Ivos
DTO with mapping:
class SomeDtoV2 {
private String stringValue;
private Integer integerValue;
@JsonAnyGetter
@JsonAnySetter
private Map<String, Object> dynamicValues = new LinkedHashMap<>();
// ...
}
Exec:
SomeDtoV2 dto = new ObjectMapper()
.readValue("{\"stringValue\": \"bar\", \"integerValue\": 456, \"xxx\": 999, \"yyy\": \"hello\"}", SomeDtoV2.class);
System.out.println(dto);
Console:
SomeDtoV2{stringValue='bar', integerValue=456, dynamicValues={xxx=999, yyy=hello}}
Metadata
Assignees
Labels
No labels