-
Notifications
You must be signed in to change notification settings - Fork 245
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
[contract definition] Error when retrieving a single contract definition #3137
Comments
Thanks for your contribution 🔥 We will take a look asap 🚀 |
Hi @AhmedGrati this happens because of the compaction process as stated in the json-ld spec. The default configuration of the option In case you are interested in contributing this is the entry point for the jsonld extension. and here where the compact happens. Thanks |
I'm not sure we want to make this configurable. We probably should support one way or the other. |
I'd like to work on it. |
If we want to have a fixed solution i would prefer the not compressed one always :) |
Sorry misread! That would be great! |
Another advice could be to always expand json-ld before evaluating it, because as a client you cannot take for granted a specific server compaction configuration. |
This issue is stale because it has been open for 14 days with no activity. |
This issue was closed because it has been inactive for 7 days since being marked as stale. |
1 similar comment
This issue was closed because it has been inactive for 7 days since being marked as stale. |
@ndr-brt any update on this? |
nobody had the time to do this, we're eventually waiting for community contributions |
Bug Report
Describe the Bug
When trying to fetch a contract definition by ID, the
edc:criteria
is returned as an object, while It should be an array of objects.Expected Behavior
When getting a contract definition by ID, I expect this object:
Observed Behavior
In reality, the EDC connector is returning an
edc:criteria
as a single object. e.g:Steps to Reproduce
Steps to reproduce the behavior:
/contractdefinitions/contract
, and you should see the following response:Context Information
N/A
Detailed Description
The creation of contract definition
The fetching of the previously created contract definition
When I create a contract definition with multiple criteria, the response of the
GET
request of a single contract definition, would have an array of objects in theedc:criteria
, which is the desired response. Therefore there's an inconsistency in the API response when trying toGET
a single contract definition.Possible Implementation
N/A.
The text was updated successfully, but these errors were encountered: