Skip to content

How to combine validations and PATCH? #1558

@maxlapshin

Description

@maxlapshin

I have an Account model and I want to update only his age.

It is very convenient to describe patch method with Account object, however it is not working because validation will force to specify that it must contain id, email, etc.

What is the proper approach to postpone validation after patching database object?

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