linkml
linkml copied to clipboard
gen-graphql does not recognise value for `range` if set to 'Any'
Describe the bug
graphqlgen raises a ValueError is range is set to Any
Version of LinkML you are using
OS: Mac OS 14.5 Browser [safari] Python 3.11. linkml 1.8.3
Please provide a schema (and if applicable, a data file) that replicates the issue
- Alter personinfo.yaml to set a 'range' to be 'Any'
- Run the following generator command
!gen-graphql ../example/personinfo.yaml > person_info_test.graphql
Should trigger the following error:
ValueError: File "personinfo.yaml", line 62, col 12 slot: age - unrecognized range (Any)