openepcis / epcis-testdata-generator

EPCIS 2.0 Testdata Generator
https://openepcis.io
Apache License 2.0
3 stars 2 forks source link

Fix the issue with local name during the event creation with user extensions. #25

Closed Aravinda93 closed 5 months ago

Aravinda93 commented 1 year ago

Currently, during the addition of user extensions, the default local names such as GS1, CBV, etc are considered in @Context, as it is part of the epics-context schema it should not be considered in context.

Also, some of the user extension local names are not considered correctly such as:

http://epcis.example.org/myvoc results in the local name of epcis whereas the actual local name should be myvoc.

Aravinda93 commented 1 year ago

A similar issue has been noted in the new version:

Current context consists of following:

{ "ref": "https://www.gs1.org/voc/" }

expected: { "gs1": "https://www.gs1.org/voc/" }