RalphTro / epcis-event-hash-generator

ALGORITHM and SOFTWARE PROTOTYPE to uniquely identify/validate the integrity of any EPCIS event through a common, syntax-agnostic approach based on hashing. Takes an EPCIS Document (formatted in either XML or JSON-LD) and returns the corresponding hash value(s).
MIT License
8 stars 4 forks source link

Update Algorithm and Examples to current JSON Schema #37

Closed Echsecutor closed 1 year ago

Echsecutor commented 3 years ago

The JSON Schema has changed and the current list of Examples does not conform to the schema definition https://github.com/gs1/EPCIS/blob/master/JSON/EPCIS-JSON-Schema-single-event.json

The algorithm (JSON parsing) needs to be adapted to accommodate these changes.

dakbhavesh commented 3 years ago

Hi @Echsecutor, Have raised PR #38 to support single event in JSON payload.

RalphTro commented 2 years ago

As to th examples: addressed in PR https://github.com/RalphTro/epcis-event-hash-generator/pull/66 All JSON/JSON-LD files conform to the current version of the EPCIS 2.0 JSON schema (as of April/2022)

RalphTro commented 1 year ago

Update I just checked all .jsonld example files again. In the master branch, only epcisDocWithSensorComponent.jsonld does not yet conform with the JSON schema yet. With PR 'examplesWithComponent', this is fixed. In this context, I also adjusted the URI pointing to the context file for all examples (see todays commit in the 'examplesWithComponent' branch. So, IMO, once PR 'examplesWithComponent' is merged into master, we can close this issue.

RalphTro commented 1 year ago

The above-mentioned is now adjusted; thus we can close this issue.