Open nealkruis opened 1 year ago
Any suggestions on how to do this?
Yes. Through the definitions of a Machine Readable Ruleset.
I'm not sure I'm following the example provided. What makes this a "forward declare" type of enumeration?
By "forward declare", I mean that the primary schema would reference an enumeration (e.g.,
generate_229_schema(primary_schema_template, machine_readable_ruleset)
that would pull the ruleset specific enumeration definitions into a complete schema specific to the ruleset.
Any recommendations on how should this be expressed in the YAML schema file?
For now, I think you can create two separate files: A primary schema "template" with the forward declarations, and a second file with ruleset specific enumerations / data groups. You can reference the latter from the former for now and develop the script to generate them more dynamically later.
If you could create some example text, that would help me. It sounds like you are describing essentially what we have now except for something that would indicate the forward declaration itself.
We can figure out ways to "forward declare" enumerations (so that the specific ruleset defines them), or maybe generate a ruleset specific schema from a template where some enumerations and data groups are inserted when the schema is "compiled".
These enumerations are not within the scope of 229, and often not within the scope of ASHRAE to decide.