Skip to content

Provide additional SchemaError tests #42

@stijnvanhoey

Description

@stijnvanhoey

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions