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

Add Validations to model #30

Open
3 tasks
angrifel opened this issue Mar 5, 2017 · 0 comments
Open
3 tasks

Add Validations to model #30

angrifel opened this issue Mar 5, 2017 · 0 comments
Milestone

Comments

@angrifel
Copy link
Owner

angrifel commented Mar 5, 2017

We should allow validations to occur on the model at different levels.

  • at the field level
entities:
  entity_1:
    ...
    members:
      field_1: ...
      field_2:
        type: ...
        validations: 
          validation_name_1 : [validation rule here]
          validation_name_2 : [validation rule here]
          #other validations here
      #other fields here
  entity_2: ...
  #other entities here
  • at the entity level
entities:
  entity_1:  ...
    members: ...
    validations: 
      validation_name_1 : [validation rule here]
      validation_name_2 : [validation rule here]
      #other validations here
  entity_2: ...
  #other entities here
  • at the model level.
enums: ...

entities: ...

validations: 
  validation_name_1 : [validation rule here]
  validation_name_2 : [validation rule here]
  #other validations here
@angrifel angrifel added this to the Backlog milestone Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant