Skip to content

Project's pushRules missing commit_committer_name_check settings with Gitlab v17.3.3-ee #1171

Closed
@bedla

Description

@bedla

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions