Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make HEDVersion more flexible (array and partnered libary schemas) #234

@asmacdo

Description

@asmacdo

Currently this is our HEDVersion

    HEDVersion: str | None = pydantic.Field(
        description="The version of the HED standard that was used.",
        pattern=r"^\d+\.\d+(?:\.\d+)?$",

IIUC this can be a single item, or a list, and the list can contain partnered libaray schemas

So I think this should be List[str] | str | None, and the regex should be relaxed, since apparently these are valid:

  • "HEDVersion": "score_1.0.0"
  • "HEDVersion": ["8.1.0", "sc:score_1.0.0"

Originally posted by @asmacdo in #232 (comment)

As discussed on the original PR, we opted to keep as-is for now and address it if/when it becomes a problem.

We'll need to discuss some of these cases before this is ready to be addressed (#232 (review))

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