Following up on a comment made in #7138, we here consider the following restructure:
- There is only
Data
- Sub-types no longer extend
Data directly
Data is still unique by node_type per data type (in DB)
- Sub-types implement (and register via entry-point system):
i. Utility interface, accessible via Data.value
ii. Pydantic schemas
- If sub-type package is not installed:
i. Data.value raises dedicated message (with instructions)
ii. Pydantic schema is not accessible, leading to attributes remaining a simple dict
@giovannipizzi
Following up on a comment made in #7138, we here consider the following restructure:
DataDatadirectlyDatais still unique bynode_typeper data type (in DB)i. Utility interface, accessible via
Data.valueii. Pydantic schemas
i.
Data.valueraises dedicated message (with instructions)ii. Pydantic schema is not accessible, leading to
attributesremaining a simpledict@giovannipizzi