From a31e78fce2e3eed9f7d364834493071c33689a68 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Wed, 17 Apr 2019 22:28:01 +0200
Subject: [PATCH] Moved description to summary, added ID and URL descriptions

---
 schemas/0.1/example.json |  9 ++++++---
 schemas/0.1/schema.json  | 21 ++++++++++++++++++++-
 2 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/schemas/0.1/example.json b/schemas/0.1/example.json
index cf8d893..f36773a 100644
--- a/schemas/0.1/example.json
+++ b/schemas/0.1/example.json
@@ -1,5 +1,8 @@
 {
   "version": "0.1",
+  "id": "https://retribute.me/@Alice.json",
+  "url": "https://retribute.me/@Alice.html",
+  "summary": "My name is Alice, I produce Creative Commons electro music. I need your support to continue working on my audio pieces!",
   "means": [
     {
       "provider": "flattr",
@@ -12,14 +15,14 @@
       "id": "sendmecash",
       "name": "Cash",
       "weight": 1,
-      "description": "I live here, you can send me money directly"
+      "summary": "I live here, you can send me money directly"
     },
     {
-      "provider": "unkown",
+      "provider": "unknown",
       "id": "freetips",
       "name": "Tip me on freetips",
       "weight": 2,
-      "description": "This is the best place to tip me"
+      "summary": "This is the best place to tip me"
     }
   ]
 }
diff --git a/schemas/0.1/schema.json b/schemas/0.1/schema.json
index 8a4e6de..6e9bf10 100644
--- a/schemas/0.1/schema.json
+++ b/schemas/0.1/schema.json
@@ -5,6 +5,7 @@
   "type": "object",
   "additionalProperties": false,
   "required": [
+    "id",
     "version",
     "means"
   ],
@@ -15,6 +16,24 @@
         "0.1"
       ]
     },
+    "id": {
+      "description": "Canonical URL of the JSON representation of the JSON profile",
+      "type": "string",
+      "examples": [
+        "https://retribute.me/@Alice.json"
+      ]
+    },
+    "url": {
+      "description": "URL of an alternative HTML representation of the retribute profile",
+      "type": "string",
+      "examples": [
+        "https://retribute.me/@Alice.html"
+      ]
+    },
+    "summary": {
+      "description": "A human readable exaplanation to go with the profile",
+      "type": "string"
+    },
     "means": {
       "description": "A list of retribution means",
       "type": "array",
@@ -49,7 +68,7 @@
         "name": {
           "type": "string"
         },
-        "description": {
+        "summary": {
           "type": "string"
         },
         "weight": {
-- 
GitLab