Skip to content

Commit

Permalink
feat: add custom Json and JsonLd fields (sovity#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
ununhexium authored and dhommen committed Mar 26, 2024
1 parent 07980de commit e516372
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ https://github.com/sovity/edc-ui/releases/tag/v2.4.0

### EDC Extensions

- UIAsset: Replaced unsafe additional and private properties with safer alternative fields `customJsonAsString` (**not** affected by Json LD manipulation) and `customJsonLdAsString` (affected by Json LD manipulation), along with their private counterparts.

#### Patch Changes

### Deployment Migration Notes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DspContractOfferUtils {
* @return A base64 string that can be used as an id for the {@code contract}
*/
public static String buildStableId(JsonObject contract) {
// FIXME: This doesn't enforce any property order and may cause trouble if the returned policy schema is not consistent.
// NOTE: This doesn't enforce any property order and may cause trouble if the returned policy schema is not consistent.
// Use canonical form if needed later.
val noId = Json.createObjectBuilder(contract).remove(Prop.ID).build();
val policyId = hash(noId);
Expand Down

0 comments on commit e516372

Please sign in to comment.