gs1 / EPCIS

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

Disallow standard CBV URI prefixes in fields expecting bare word values #421

Closed mgh128 closed 2 years ago

mgh128 commented 2 years ago

Updated JSON Schema to prevent use of urn:epcglobal:cbv: or https://ns.gs1.org/cbv/ in values for bizStep, bizTransaction-type, component, disposition, error-reason, source-dest-type nor use of https://gs1.org/voc/ or https://www.gs1.org/voc/ in values for measurement-type or sensor-alert-type Restriction implemented by defining new types, vocab-other-uri and vocab-nonGS1WebVoc-uri using regular expression patterns with negative lookahead (?! ...) - appears to work as intended when tested using https://www.jsonschemavalidator.net/