gs1 / EPCIS

Draft files being shared for EPCIS 2.0 development
Other
22 stars 7 forks source link

Vendor extensions missing from the json schema #273

Closed domguinard closed 3 years ago

domguinard commented 3 years ago

It seems like the vendor extensions are missing from the json schema, should we add them?

According to the examples they should be of the form:

"example:myField":"Example of a vendor/user extension"

but should they be allowed for all documents/events?

mgh128 commented 3 years ago

Note that in JSON/JSON-LD user/vendor extensions can be included in (TBD a list of elements in which extensions are permitted in the XSD) but the best practice recommendation is that these fieldnames should not be a bare string JSON key but instead should be a CURIE (Compact URI Expression)

CraigRe commented 3 years ago

@CraigRe : Check xsd for references to ##other, where vendor/user-defined extensions are permitted in xml, to ensure support for round-trip (xml-json-xml) translation.

CraigRe commented 3 years ago

Link to https://github.com/gs1/EPCIS/issues/261