Skip to content
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

Issues in JSON-Schema Definition #232

Open
3 of 9 tasks
schoenenberg opened this issue Feb 15, 2024 · 8 comments
Open
3 of 9 tasks

Issues in JSON-Schema Definition #232

schoenenberg opened this issue Feb 15, 2024 · 8 comments

Comments

@schoenenberg
Copy link

schoenenberg commented Feb 15, 2024

Hi,

I am currently going in detail through JSON-Schema Definitions and I found some inconsistencies on these definitions. I am not sure how these were created - manually or generated. Please triage them and if necessary fix them:

I will extend the list when I find more inconsistencies.

@sebbader-sap
Copy link
Contributor

Great observations, I already prepared a fix for the first and third one.

RightOperand is not defined on purpose, as it can appear in many ways in JSON. If you can provide a pattern, very much appreciated!

The construct for Offer is also on purpose, due to the fact that we need to express that target is forbidden in most cases (everytime the schema validation goes through the Offer path) but not always (when coming through MessageOffer directly).

@sebbader-sap
Copy link
Contributor

Let's use #236 to derive a solution.

@schoenenberg
Copy link
Author

The construct for Offer is also on purpose, due to the fact that we need to express that target is forbidden in most cases (everytime the schema validation goes through the Offer path) but not always (when coming through MessageOffer directly).

@sebbader-sap I cannot completely follow what you are describing. But from what I understood you are referring with target to the Agreement.odrl:target, which is three references away. To be honest I think this is a way to complex data structure. Just imagine how somebody should implement it. You need separate classes/structs anyway, otherwise you are not able to implement a data structure, which in one case has a required attribute and in another case it is not required. A specs purpose is to be implemented, therefore it should strive for simplicity and not complexity. I would suggest to refactor this, I can make a suggestion but I need some guidance what else depends on it and needs to change accordingly.

Actually I was referring with the fourth issue to the fact, that this Json-Schema definitions-part is a key-value map and the key in this case is #/definitions/Offer instead of Offer.

@sebbader-sap
Copy link
Contributor

the key in this case is #/definitions/Offer instead of Offer.

I see, this is of course a correct finding but already merged, see

@sebbader-sap
Copy link
Contributor

We need to continue this discussion as soon as the Eclipse Project has been established. As the 2024-1 release in this repo is nearly done, any further corrections / extensions need to happen in the new project.

@schoenenberg
Copy link
Author

@sebbader-sap What is the status on this? I need these reported issues to be fixed or clarified. Otherwise I am partly blocked and cannot further review it..

Please also add the bug label to this issue, so that it gets better visibility..

@sebbader-sap
Copy link
Contributor

@schoenenberg the problem is the current situation between the work inside IDSA (past) and Eclipse (future). Therefore, the general activity here is quite low. It will get better as soon as the new setup has been established.

@sebbader-sap
Copy link
Contributor

Adding another yet one:

  • Context in line 58 is missing a comma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants