gs1 / EPCIS

Draft files being shared for EPCIS 2.0 development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Example in error due to extended fields --> Decision to be made

jmcanterafonseca-iota opened this issue · comments

JSON/Example_9.6.1-ObjectEvent-with-pseudo-SBDH-headers.jsonld.json invalid
[
{
instancePath: '',
schemaPath: '#/propertyNames/anyOf/0/enum',
keyword: 'enum',
params: { allowedValues: [Array] },
message: 'must be equal to one of the allowed values',
propertyName: 'sender'
},
{
instancePath: '',
schemaPath: '#/definitions/vocab-uri/format',
keyword: 'format',
params: { format: 'uri' },
message: 'must match format "uri"',
propertyName: 'sender'
},
{
instancePath: '',
schemaPath: '#/propertyNames/anyOf',
keyword: 'anyOf',
params: {},
message: 'must match a schema in anyOf',
propertyName: 'sender'
},
{
instancePath: '',
schemaPath: '#/propertyNames',
keyword: 'propertyNames',
params: { propertyName: 'sender' },
message: 'property name must be valid'
},
{
instancePath: '',
schemaPath: '#/allOf/0/if',
keyword: 'if',
params: { failingKeyword: 'then' },
message: 'must match "then" schema'
}
]

fixed. all examples now validate.