Verified Commit 908e8824 authored by Agate's avatar Agate 💬

Added identity list

parent 44bfd8b2
Pipeline #3942 passed with stage
in 28 seconds
......@@ -3,6 +3,26 @@
"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!",
"identities": [
{
"provider": "fediverse",
"id": "alice@mastodon.instance",
"url": "https://mastodon.instance/alice",
"weight": 1
},
{
"provider": "musicbrainz",
"id": "176216c5-d6e7-4df1-83cf-85251328eb90",
"url": "https://musicbrainz.org/artist/176216c5-d6e7-4df1-83cf-85251328eb90",
"weight": 2
},
{
"provider": "custom",
"id": "personal-website",
"url": "https://alice.me",
"weight": 3
}
],
"means": [
{
"provider": "flattr",
......
......@@ -38,11 +38,56 @@
"description": "A list of retribution means",
"type": "array",
"items": { "$ref": "#/definitions/mean" }
},
"identities": {
"description": "A list of identities lined to the profile",
"type": "array",
"items": { "$ref": "#/definitions/identity" }
}
},
"definitions": {
"identity": {
"description": "A single retribution mean. The provider and id must form a unique combination",
"type": "object",
"required": ["provider", "id", "weight"],
"minItems": 0,
"properties": {
"provider": {
"type": "string",
"description": "A provider id",
"examples": [
"facebook",
"twitter",
"fediverse",
"instagram",
"keybase",
"youtube",
"funkwhale",
"peertube",
"custom"
]
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"url": {
"type": "string"
},
"summary": {
"type": "string"
},
"weight": {
"type": "integer",
"minimum": 0,
"description": "Weight of the identity. Higher values mean this identity is displayed first"
}
}
},
"mean": {
"description": "A single retribution mean. The type and id must form a unique combination",
"description": "A single retribution mean. The provider and id must form a unique combination",
"type": "object",
"required": ["provider", "id", "weight"],
"minItems": 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment