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

Create a top-level options in YAML to facilitate option re-use #367

Open
shorowit opened this issue May 4, 2023 · 1 comment
Open

Create a top-level options in YAML to facilitate option re-use #367

shorowit opened this issue May 4, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@shorowit
Copy link
Contributor

shorowit commented May 4, 2023

It's common to want to use the same option across multiple upgrades -- e.g., an insulation option that is part of three different upgrade packages. Currently you can only avoid duplication of code by using YAML anchors, but this creates complexity and has a learning curve.

The schema can allow for option re-use, without needing anchors, by moving options to the top-level (instead of nested within each upgrade), and then have each upgrade just refer 1 or more option_names. Simple to understand and use.

(For more complicated cases where you want to re-use definitions -- e.g., a "seal_ducts_cost" that applies to 10 different options, or a "North_for_ACs" that defines the list of states that have "northern" federal requirements for ACs that applies to 10 different options -- anchors would still be needed.)

@shorowit shorowit added the enhancement New feature or request label May 4, 2023
@afontani
Copy link
Collaborator

Partially addressed #366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants