-
Notifications
You must be signed in to change notification settings - Fork 2
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
Proposal to move base properties under header #56
Comments
In general this change seems fine to me. I do worry a bit that this will require (small) updates to a variety of applications and might introduce some regressions. Nothing we can't handle but it will impact most teams I suspect. |
Yeah, it shouldn't be a big deal in existing code, but going forward the Decapodes AMR will have nested models that have as fields lists of models. Each of the models all the way down will have header objects and if we don't group them into a struct that can be included in each model type, there will be several structs with several repeated fields. Better to fix it now before we make more copy-pasta. |
I merged my changes to the schemas and examples, and released tags |
In #54, a the new AMR structure implemented by @jpfairbanks for Decapodes puts base (top-level) properties of the AMR under a key called
header
. These properties are:schema
,schema_name
,name
,description
andmodel_version
. If we decide to put these properties underheader
for Decapodes then for consistency with a single base schema it would be good to make the same change for other frameworks,petrinet
andregnet
. Example:Current:
Proposed:
What are people's thoughts about this?
The text was updated successfully, but these errors were encountered: