Skip to content

Conditional metadata validation or multiple schema? #13

@mhpob

Description

@mhpob

I've hit a bump in terms of metadata validation while trying to add some MATOS data submission forms: these will have an inherently different metadata structure than, say, receiver detections.

To address this, would it be better to have separate metadata schema for each sub-directory of the repository, or to implement a large conditional schema (if type == detections, validate this way, etc.)?

I feel the former may be less confusing if we outline specifically what is going on. This would require shifting files around in currently-pending PRs (#10 and #11) and adjustment of the validator GH Action, so I'll wait until those are accepted/rejected/edited.

The latter doesn't seem to be possible when using Yamale, but may be possible using whip, if I'm reading this right: https://github.com/inbo/whip/blob/master/docs/syntax.md#if

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