From 104f94fd754b64659d70bbe1630b8f1a6a922e83 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 6 Dec 2023 21:11:51 +0100 Subject: [PATCH] Add new "instance" object and use it for instance name propagation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jonne Haß --- schemas/2.2/example.json | 3 +++ schemas/2.2/schema.json | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/schemas/2.2/example.json b/schemas/2.2/example.json index b83a70e..7999895 100644 --- a/schemas/2.2/example.json +++ b/schemas/2.2/example.json @@ -1,5 +1,8 @@ { "version": "2.2", + "instance": { + "name": "New FI𝑓F" + }, "software": { "name": "diaspora", "version": "0.5.0", diff --git a/schemas/2.2/schema.json b/schemas/2.2/schema.json index 8908712..c30e8ad 100644 --- a/schemas/2.2/schema.json +++ b/schemas/2.2/schema.json @@ -7,6 +7,7 @@ "additionalProperties": false, "required": [ "version", + "instance", "software", "protocols", "services", @@ -21,6 +22,18 @@ "2.2" ] }, + "instance":{ + "description": "Metadata specific to the instance. An instance is a the concrete installation of a software running on a server.", + "type": "object", + "additionalProperties": false, + "properties": { + "name": { + "description": "If supported by the software the administrator configured name of this instance", + "type": "string", + "pattern": "^.{0,500}$" + } + } + }, "software": { "description": "Metadata about server software in use.", "type": "object",