shaclgen not generating nodeKind/datatype #1299
Labels
bug
Something that should work but isn't, with an example and a test case.
community-generated
generator-dataclasses
Python classes were generated by dataclass (we are mostly switching to Pydantic, though)
Describe the bug
The artifacts generated by
shaclgen.py
are missingnodeKind
anddatatype
for linkml types. During debugging this conditional is always false and inner block is skipped:linkml/linkml/generators/shaclgen.py
Line 112 in ec93623
To reproduce
Using linkml-project-cookiecutter you can run gen-shacl and example schema and examine types ("sh:property") nodes.
Expected behavior
I'd expect to see
sh:nodeKind
andsh:datatype
generated for linkml types.The text was updated successfully, but these errors were encountered: