Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected error when validation is empty #80

Open
SleeplessByte opened this issue Feb 27, 2020 · 0 comments
Open

Expected error when validation is empty #80

SleeplessByte opened this issue Feb 27, 2020 · 0 comments

Comments

@SleeplessByte
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant