Open foundrytom opened 7 months ago
If Specifications didn't list traits but instead had a mapping of trait ID to something (e.g. version), then Specification "inheritance" could work using YAML anchors and aliases to merge in the traits of a "parent" Specification.
Cross-schema inheritance would need a concatenated YAML, though.
What
Determine if/what a mechanism would look like that helps people create new specifications that extend existing ones.
For example, extending an
ImageSpecification
with another trait to make aTextureSpecification
Why
Presently, you have to copy-paste all the traits, which introduces the possibility of error, and precludes any easy way to follow (or even observe) the intended dependency.