Azure / opendigitaltwins-building

Open Digital Twins Definition Language (DTDL) RealEstateCore Ontology
MIT License
155 stars 44 forks source link

Issue with generated multiplicity fields (and perhaps other numeric fields) #2

Closed cschormann closed 4 years ago

cschormann commented 4 years ago

The generated REC classes currently contain definitions such as the following: "maxMultiplicity": { "@type": "xsd:integer", "@value": "1" }, "minMultiplicity": { "@type": "xsd:integer", "@value": "0" },

I believe this really should just read maxMultiplicity: 1 and minMultiplicity: 0

While this currently passes the DTDL validator, it is not officially valid DTDL syntax, to the best of my knowledge, and may fail in future versions of the DTDL parser .

hammar commented 4 years ago

Closed in above commits.