Geonovum / uml2json

Best Practise for OGC - UML to JSON Encoding Rules
https://geonovum.github.io/uml2json/document.html
0 stars 1 forks source link

7.9.3 - pja - Union for property choices not clear #27

Closed PalmJanssen closed 1 year ago

PalmJanssen commented 1 year ago

The JSON implementation for the union for property choices is not clear to me.

jechterhoff commented 1 year ago

Does the referencing property exist in instance data? Or is it replaced by one of the properties 'option1' and 'option2'?

Yes, the property whose type is a union does exist, and contains as value an object (that represents the union "value") with either property option1 or option2.

As understood the option1 and option2 properties can also be multiple (n>1). Does that also work?

Yes.