Closed galund closed 3 months ago
Thanks for the report!
As an interim measure until we resolve #757 we will implement an option in linkml-validate to bypass instantiating python objects, and pass the dictionary directly to validation
This will be useful anyway, because the python instantiation automatically repairs certain kinds of structural issues - for example if you pass a single value to a multivalued field, it will fix this. This can be handy, but this is not always desirable
Yeah, just about the report the same.
@ialarmedalien Keeping this ticket open as a stand-in for #897
Dupe of #1157
@sierra-moxon / @sujaypatil96 / @nlharris: investigate issue fix and assign priority
ran again, fixed.
Describe the bug (This bug is similar but not the same as https://github.com/linkml/linkml/issues/757.)
A prefix with a hyphenated name causes a
NameError
when compiling to Python in order to validate some JSON.To Reproduce
linkml-validate -s linkml-schemas/basic.yml examples/test.json
Expected behavior Validation should proceed as if
some-prefix
in the example above were replaced withsomeprefix
.Actual behavior
Additional context Add any other context about the problem here.