Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

"Range: Any" is unrecognized when running "make test" #144

@Enro

Description

@Enro

Dear LinkML cookiecutter developers, thank you for this great tool. I am currently building my data model with LinkML v1.9.3 on MacOS Sequoia 15.5 and I am running into an issue with the "any_of" construct.

After much fighting, I settled on this syntax:

slots:
  pi_age:
    range: Any
    any_of: 
      - range: AgeRange
      - range: AgeValue
    description: Age or age range of the principal investigator.

where AgeRange and AgeValue are defined as types.

Please note that range: Any is a recommendation as per https://linkml.io/linkml/schemas/advanced.html Without this, any_of would not work (only the first range would be considered).

However, when running make test, I get the following error message.

(...)
ValueError: File "grant_applications_data.yaml", line 67, col 12 slot: pi_age - unrecognized range (Any)
(...)

So it seems that Range: Any is not valid? Did I do something wrong or is the documentation lagging behind the software? And finally, how can I obtain the result that I am trying to obtain with any_of?

Any help would be much appreciated, thank you in advance.

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