Skip to content

Expected error when validation is empty #80

Open
@SleeplessByte

Description

@SleeplessByte

When given:

validations do
  version 1 do
    # empty

    view :index do
      # empty
    end
  end
end

I expect the second # empty to error, but not the first.

validations do
  version 1 do
    # empty
  end
end

I expect the only (and first) # empty to error.

This might be impossible due to how these blocks can be freely nested. For example, why would view :index error here, but version 1 (with implicit view nil won't (and shouldn't).

If this can't be solved, that's fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions