ETPartners / b2mmlv7beta

b2mmlv7beta for review
2 stars 3 forks source link

ERDi Design Rule: Using "ID" for both single element (0..1) and multiple (n) elements (0..n)? #3

Open CharlieG021163 opened 5 years ago

CharlieG021163 commented 5 years ago

Where B2MML Schema uses a “xxxID” to reference other master data objects. B2MML explicitly define the ID for both single element (0..1) and multiple (n) elements (0..n) as collection. In the BHP JSON schema, the design rule was to use the common best practice of xxxId and xxxIds to be explicit between single vs. collections, respectively. What is the ERDi design rule?

Dennis-Brandl commented 4 years ago

The decision to use a single or multiple is up to the specific XML document. The rules in ISA 95 specify the maximum multiplicity, but any individual document may define one or more. I disagree with this change. Remember B2MML is designed to be a container for many different types of implementations. The current model works, there is no overriding reason for this change.