Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specification "inheritance" #65

Open
foundrytom opened this issue Nov 15, 2023 · 1 comment
Open

Specification "inheritance" #65

foundrytom opened this issue Nov 15, 2023 · 1 comment
Milestone

Comments

@foundrytom
Copy link
Contributor

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 a TextureSpecification

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.

@feltech
Copy link
Member

feltech commented Jan 31, 2024

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.

@elliotcmorris elliotcmorris added this to the v1.0.0 milestone Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants