Skip to content

Batch validations #2472

@jsw800

Description

@jsw800

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

Is your feature request related to a problem? Please describe.

Changes support bulk creates by implementing the batch_change callback, but validations don't support something similar.

In practice, this can be worked around by creating a change module that implements batch_change and using it as if it was a validation, but this feels a little odd compared to a builtin solution with validations.

Describe the solution you'd like

It would be nice for there to be a batch_validate callback (and friends) on Ash.Resource.Validation.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions