From e813ffaa2a494596798d7426d916d5eba014fdbb Mon Sep 17 00:00:00 2001 From: Felix Gerbig <48456355+gerbigf@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:24:03 +0100 Subject: [PATCH] Update 02_policies.md The let all pass policy was not working. Specifically the policy type "Policy" resulted in an error when creating the policy. Also the policy definition was inconsistent to the other policies on this page. --- .../management-api-walkthrough/02_policies.md | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/usage/management-api-walkthrough/02_policies.md b/docs/usage/management-api-walkthrough/02_policies.md index c3cbb0871..1cc68fb6b 100644 --- a/docs/usage/management-api-walkthrough/02_policies.md +++ b/docs/usage/management-api-walkthrough/02_policies.md @@ -327,16 +327,19 @@ that the EDC interprets policies it can't evaluate as true by default. A couple ```json { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, + "@context": [ + "http://www.w3.org/ns/odrl.jsonld", + { + "@vocab": "https://w3id.org/edc/v0.0.1/ns/" + } + ], "@type": "PolicyDefinition", - "@id": "{% uuid 'v4' %}", + "@id": "{{POLICY_ID}}", "policy": { - "@type": "Policy", - "odrl:permission": [ + "@type": "Set", + "permission": [ { - "odrl:action": "use" + "action": "use" } ] }