Browse Source

Add new attributes structure to json

Raul Vega del Valle 1 year ago
parent
commit
6c84313195
1 changed files with 24 additions and 8 deletions
  1. 24 8
      apps/petitions/decode-app/data/petitions.json

+ 24 - 8
apps/petitions/decode-app/data/petitions.json

@@ -12,14 +12,30 @@
12 12
       "square": "images/square-city-red.png",
13 13
       "wide": "images/wide-city-red.png"
14 14
     },
15
-    "attributes": [{
16
-	    "predicate": "schema:addressLocality",
17
-	    "object": "Barcelona",
18
-	    "scope": "can-access",
19
-	    "credentialIssuer": {
20
-	      "url": "http://atlantis-decode.s3-website-eu-west-1.amazonaws.com"
21
-	    }
22
-    }],
15
+    "attributes": {
16
+      "mandatory": [
17
+        {
18
+          "predicate": "schema:addressLocality",
19
+          "object": "Barcelona",
20
+          "scope": "can-access",
21
+          "provenance": {
22
+            "url": "http://atlantis-decode.s3-website-eu-west-1.amazonaws.com"
23
+          }
24
+        }
25
+      ],
26
+      "optional": [
27
+        {
28
+          "predicate": "schema:dateOfBirth",
29
+          "object": "voter",
30
+          "scope": "can-access"
31
+        },
32
+        {
33
+          "predicate": "schema:gender",
34
+          "object": "voter",
35
+          "scope": "can-access"
36
+        }
37
+      ]
38
+    },
23 39
     "isOpen": true,
24 40
     "outcome": {}
25 41
   }