openepcis / openepcis-event-hash-generator

Project to generate event hash for EPCIS document/event in XML/JSON-LD format.
https://openepcis.io
Apache License 2.0
6 stars 2 forks source link

OEPCIS-767: Add support for Event Hash Generation using CBV 2.1 version #24

Closed Aravinda93 closed 11 months ago

Aravinda93 commented 11 months ago

@sboeckelmann This pull request will add support to the CBV 2.1 version where the following changes are currently supported, please let me know if I have missed something:

  1. User extensions are appended immediately after the respective fields instead of at the end together.

  2. SensorElementList keyword is added before the respective Sensor elements.

  3. Event hash will have CBV2.1 at the end of the Hash ID instead of the regular CBV2.0.

In our code currently, we will be defaulting to CBV2.0 if the user has not specified the CBV version else user-defined version will be used. Please review the changes and approve the PR.

Aravinda93 commented 11 months ago

@sboeckelmann

Based on the review I have modified the code and used the CBV 2.1.0 instead of 2.0.1. Can you please review the changes?