Create a top-level options
in YAML to facilitate option re-use
#367
Labels
enhancement
New feature or request
options
in YAML to facilitate option re-use
#367
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 eachupgrade
), and then have each upgrade just refer 1 or moreoption_name
s. 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.)
The text was updated successfully, but these errors were encountered: