From b6190540eee0acbe0b0c039e7b1f405f5844d395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ainsworth?= Date: Mon, 20 Nov 2023 09:22:19 +0000 Subject: [PATCH] feat(docs): Added CoC property to nodeinfo spec Part-of: --- changes/changelog.d/coc-nodeinfo.doc | 1 + docs/specs/nodeinfo21/index.md | 4 ++++ docs/specs/nodeinfo21/schema.yml | 3 +++ 3 files changed, 8 insertions(+) create mode 100644 changes/changelog.d/coc-nodeinfo.doc diff --git a/changes/changelog.d/coc-nodeinfo.doc b/changes/changelog.d/coc-nodeinfo.doc new file mode 100644 index 000000000..7f0174675 --- /dev/null +++ b/changes/changelog.d/coc-nodeinfo.doc @@ -0,0 +1 @@ +Added CoC link to nodeinfo endpoint spec. diff --git a/docs/specs/nodeinfo21/index.md b/docs/specs/nodeinfo21/index.md index e8d100956..adc27ab75 100644 --- a/docs/specs/nodeinfo21/index.md +++ b/docs/specs/nodeinfo21/index.md @@ -91,6 +91,9 @@ The NodeInfo endpoint must contain all mandatory elements listed in the specific `location` (String) : The country the pod is located in +`codeOfConduct` (String \) +: If the server admin has populated the **Rules** setting on their pod, this value is populated with the URL to the pod's about page: `/about/pod#rules`. + `federation.followsInstances` (Number) : The number of Funkwhale pods that the target pod follows @@ -163,6 +166,7 @@ Example response: "instanceSupportMessage": "string", "languages": ["string"], "location": "string", + "codeOfConduct": "string", "content": { "local": { "artists": 1000, diff --git a/docs/specs/nodeinfo21/schema.yml b/docs/specs/nodeinfo21/schema.yml index 9658c4321..e454b24c0 100644 --- a/docs/specs/nodeinfo21/schema.yml +++ b/docs/specs/nodeinfo21/schema.yml @@ -491,6 +491,9 @@ components: type: string location: type: string + codeOfConduct: + type: string + format: url content: type: object properties: