uncefact / spec-untp

UN Transparency Protocol
https://uncefact.github.io/spec-untp/
GNU General Public License v3.0
16 stars 17 forks source link

DTE sample instance does not validate against the DTE schema #193

Open nissimsan opened 4 weeks ago

nissimsan commented 4 weeks ago

Impacted sections

Issue Description

The sample DTE sample does not comply with the DTE schema:

 Found 30 error(s)
Message:
JSON is valid against no schemas from 'oneOf'.
Schema path:
#/$defs/Event/oneOf
Message:
Value "TransformationEvent" is not defined in enum.
Schema path:
#/$defs/ObjectEvent/properties/type/items/enum
Message:
Value "TransformationEvent" is not defined in enum.
Schema path:
#/$defs/AggregationEvent/properties/type/items/enum
Message:
Value "TransformationEvent" is not defined in enum.
Schema path:
#/$defs/TransactionEvent/properties/type/items/enum
Message:
Value "TransformationEvent" is not defined in enum.
Schema path:
#/$defs/AssociationEvent/properties/type/items/enum
Message:
Value ["TransformationEvent","Event"] does not match const.
Schema path:
#/$defs/ObjectEvent/properties/type/const
Message:
Value ["TransformationEvent","Event"] does not match const.
Schema path:
#/$defs/AggregationEvent/properties/type/const
Message:
Value ["TransformationEvent","Event"] does not match const.
Schema path:
#/$defs/TransactionEvent/properties/type/const
Message:
Value ["TransformationEvent","Event"] does not match const.
Schema path:
#/$defs/AssociationEvent/properties/type/const
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/AssociationEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/TransactionEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/AggregationEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/ObjectEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/TransformationEvent/properties/action/enum
Message:
Required properties are missing from object: sourcePartyId, destinationPartyId.
Schema path:
#/$defs/TransactionEvent/required
Message:
JSON is valid against no schemas from 'oneOf'.
Schema path:
#/$defs/Event/oneOf
Message:
Value "ObjectEvent" is not defined in enum.
Schema path:
#/$defs/TransformationEvent/properties/type/items/enum
Message:
Value "ObjectEvent" is not defined in enum.
Schema path:
#/$defs/AggregationEvent/properties/type/items/enum
Message:
Value "ObjectEvent" is not defined in enum.
Schema path:
#/$defs/TransactionEvent/properties/type/items/enum
Message:
Value "ObjectEvent" is not defined in enum.
Schema path:
#/$defs/AssociationEvent/properties/type/items/enum
Message:
Value ["ObjectEvent","Event"] does not match const.
Schema path:
#/$defs/TransformationEvent/properties/type/const
Message:
Value ["ObjectEvent","Event"] does not match const.
Schema path:
#/$defs/AggregationEvent/properties/type/const
Message:
Value ["ObjectEvent","Event"] does not match const.
Schema path:
#/$defs/TransactionEvent/properties/type/const
Message:
Value ["ObjectEvent","Event"] does not match const.
Schema path:
#/$defs/AssociationEvent/properties/type/const
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/AssociationEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/TransactionEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/AggregationEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/ObjectEvent/properties/action/enum
Message:
Value "Add" is not defined in enum.
Schema path:
#/$defs/TransformationEvent/properties/action/enum
Message:
Required properties are missing from object: sourcePartyId, destinationPartyId.
Schema path:
#/$defs/TransactionEvent/required
nissimsan commented 4 weeks ago

"action": "Add" is incorrectly capitalized