Add metaclass magic for LD annotations in addition to the decorator #24
Labels
enhancement
New feature or request
internals
Technical and subtle issues users are (usually) not aware of
semantics
Related to semantic-based features, e.g. JSON-LD, OWL, RDF
The MetadorSchemaMeta class should remap
LD_something = "value"
(i.e. without a type annotation) into a field@something = Optional[Literal["value"]] = "value"
and work correctly with partial schema generation etc.Also nice would be
LD_something: type = ...
to be mapped tosomething = Annotated[..., Field(alias="@something")
and to work correctly with inheritance etc.
The text was updated successfully, but these errors were encountered: