Status: WIP on extending hierarchy to support a "layered DAG" construct. More general relationships approach for non-hierarchy rels TBD
Schema metadata includes a 'hierarchy' attribute, used for hierarchy validation.
I think this basically serves as an optional convenience to get hierarchy validation automatically, but schemas generally don't depend on it.
A more graph-based schema (or hybrid with partial hierarchy) in theory should also work, but the onus is currently on the schema maintainer to enforce those relationship rules another way.
It might make sense to also allow expression of relationships with corresponding automatic validation.
Will need to think about how relationships are expressed in markdown and in schema. A simple start might be to write some jsonata rules that are parameterized, which could be generally useful or render the need for a specific relationships spec unnecessary
Status: WIP on extending hierarchy to support a "layered DAG" construct. More general relationships approach for non-hierarchy rels TBD
Schema metadata includes a 'hierarchy' attribute, used for hierarchy validation.
I think this basically serves as an optional convenience to get hierarchy validation automatically, but schemas generally don't depend on it.
A more graph-based schema (or hybrid with partial hierarchy) in theory should also work, but the onus is currently on the schema maintainer to enforce those relationship rules another way.
It might make sense to also allow expression of relationships with corresponding automatic validation.
Will need to think about how relationships are expressed in markdown and in schema. A simple start might be to write some jsonata rules that are parameterized, which could be generally useful or render the need for a specific relationships spec unnecessary