Open bgyori opened 10 months ago
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 petrinet_v0.6
and regnet_v0.2
. Teams should take note to update their code to work with the latest formats.
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?