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

Provide additional SchemaError tests #42

Open
stijnvanhoey opened this issue Aug 10, 2018 · 0 comments
Open

Provide additional SchemaError tests #42

stijnvanhoey opened this issue Aug 10, 2018 · 0 comments

Comments

@stijnvanhoey
Copy link
Collaborator

stijnvanhoey commented Aug 10, 2018

As some combinations of test need specific focus, some preliminar Schema-checks should be done:

  • combination of empty: True inside an ìf function without a field-wide empty: True:
lifestage:
    empty: True  # as the empty rule has priority, this is required to enable empty values inside the if-loop
    if:
        sex:
            allowed: [male]
        allowed: [adult]
        empty: True

(the concept of if which further differentiate the conditions for empty values to occur)

  • the presence of empty: True inside a delimitedvalues specification
list_of_names:
  empty: true               # The whole field can be empty...
  delimitedvalues:
    delimiter: ' | ' 
    empty: true               # NOT POSSIBLE, should raise SchemaError
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