diff --git a/linkml_runtime/linkml_model/meta.py b/linkml_runtime/linkml_model/meta.py index fee7f676..8df715b3 100644 --- a/linkml_runtime/linkml_model/meta.py +++ b/linkml_runtime/linkml_model/meta.py @@ -4014,6 +4014,9 @@ def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]): super().__post_init__(**kwargs) + def __repr__(self): + return repr(getattr(self, 'text')) + @dataclass(repr=False) class UniqueKey(YAMLRoot):