Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Require this field OR that field #595

@plagasul

Description

@plagasul

The idea would be to be able to require a field OR another field. One or the other, not necessarily both.

For example, on the following blueprint I need either a cover image to be provided, or at least one image on the images section, but not both.

cover:
    type: files 
    # require: true
...
images:
    type: files
    # min: 1

The syntax could be something like:

cover:
    type: files 
    require: 
        or: images
...
images:
    type: files
    min:
        - 1
        or: cover

...this particular example mixes 'required' and 'min', but the idea is the same.

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