Skip to content

Inconsistent validation messages #1508

Closed
@dgasper

Description

@dgasper

When defining parameters in separate requires, the validation errors include errors for all defined params. For example the following returns one is missing, two is missing

params do
  requires :one, type: Integer
  requires :two, type: Integer
end

In contrast, the following usage of a single requires for multiple params only returns one is missing.

params do
  requires :one, :two, type: Integer
end

I've tracked down where the validation is stopped to this line. Removing it results in both above examples returning one is missing, two is missing.

Is this something we would want or is the above behavior expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions