linkml / linkml-runtime

Runtime support for linkml generated models

Home Page:https://linkml.io/linkml/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`AttributeError: type object 'ConstraintType' has no attribute 'UnmappedTypeConstraint'`

mih opened this issue · comments

I am debugging a potentially faulty data model, and ran linkml-normalize on an example. This resulted in the exception

AttributeError: type object 'ConstraintType' has no attribute 'UnmappedTypeConstraint'

It is caused by the following line.

ConstraintType.UnmappedTypeConstraint, target.name, input_object

It was added in f597921

It appears that the corresponding permissible value has never been part of the ConstraintType enum.

https://github.com/linkml/linkml-runtime/blob/0c55320d243e57903d0f1aaf25aa1d9a786dd986/linkml_runtime/processing/validation_datamodel.yaml#L220C3-L220C17

Just saw #218. Sorry