linkml icon indicating copy to clipboard operation
linkml copied to clipboard

gen-graphql does not recognise value for `range` if set to 'Any'

Open proccaserra opened this issue 1 year ago • 0 comments

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

  1. Alter personinfo.yaml to set a 'range' to be 'Any'
  2. 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)

proccaserra avatar Sep 04 '24 07:09 proccaserra