-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modular JSON Schema. Usage of bare terms allowed. Validation of extensions. #298
Modular JSON Schema. Usage of bare terms allowed. Validation of extensions. #298
Conversation
@jmcanterafonseca-iota: We have separate folders for the schemas and examples using different technologies:
I suggest to do the same for JSON:
As per #277 (comment), will you validate jsonld examples against the JSON schemas? Cheers! |
6651382
to
820bf1a
Compare
@jmcanterafonseca-iota thanks!
|
Answers at the telco today:
|
@jmcanterafonseca-iota A creative rascal can go around your restriction "custom URLs should be outside the CBV namespace" in various simple ways, eg:
|
As discussed during the last call, we believe that we are planning the change to the format of request payload for POST
It would be nice to take care of the above changes as part of your PR only. |
Hi @jmcanterafonseca-iota, @mgh128, @CraigRe Would like to bring into notice that the example in the EPCIS repo is invalidating against the JSON schema proposed. We should either adjust JSON schema or example. Below has been quoted from Section 7.4.2 Object Event of 2021_06_14l EPCIS 2-0 COMMREV
Which makes us believe that JSON schema should be adjusted here but an expert opinion will help. |
@mgh128 @CraigRe @jmcanterafonseca-iota JSON Schema & SHACL need to be tweaked to reflect Shalika's comment:
|
But @shalikasingh what is the error? I think I see one point where the example needs to be adjusted: remove gs1:MT- and use pure string. |
7fe3d32
to
74b77ff
Compare
This PR needs a final decision; what will we allow apart from bare terms (i.e., CURIEs, full URIs)? |
…e latest draft schema #298
@CraigRe We have to allow both. |
Hi @visibleOrigins, @mgh128, @jmcanterafonseca-iota, @CraigRe, @VladimirAlexiev, We found a critical bug in modular JSON schema which we feel should be given attention as soon as possible, Consider an EPCIS Document like below:
It has only one problem: the attribute "
Whereas the expected error message should be as follows:
We have attached the JSON schema below that fixes the above problem. @jmcanterafonseca-iota, you can either replace the schema with the one attached or if you wish we can push changes in your branch. Let us know your preference Note: The attached JSON schema is built on top of the latest modular schema in this PR (i.e proposed by @jmcanterafonseca-iota) |
Hi @jmcanterafonseca-iota, Can you please make me a collaborator so that I can push changes proposed by @shalikasingh in the previous comment? |
Hi @jmcanterafonseca-iota, I have pushed changes to consider isA property for accurate validation of events. Please take a look and let me know in case of any issues. |
@jmcanterafonseca-iota, @dakbhavesh : Other problems found in examples made with OpenEpcis.io convertor (#276): @RalphTro wrote "I do not understand why the JSON schema validation throws errors:
|
As noted by @RalphTro and @VladimirAlexiev , reason and correctiveEventIDs are not mandatory within errorDeclaration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for preparing these. I'll make some further edits based on the few minor issues identified from the diffs of the Turtle files.
Example_9.8.1-MasterData-complying-with-schema.jsonld was already deleted from the master branch because it is an EPCISMasterDataDocument that is not supported in JSON/JSON-LD - only in XML
Example_9.8.1-MasterData.jsonld was already deleted from the master branch because it corresponds to an EPCISMasterDataDocument that is not supported in JSON/JSON-LD for EPCIS 2.0 - only in XML
No description provided.