Skip to content

Allow optional properties with RequestToObjectMapper #2214

Description

@gglnx

Description

I've got an PATCH endpoint that allows partial updates to an object. Some properties are nullable, so I can't use null to detect if a change is wished. Setting no default on the target properties throws validation error (property must be specified). I've would like mark properties as optional and leave them unset if they are missing in the request and only get validated if they in the request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions