Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support #84

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions schemas/2.2/example.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
"instance": {
"name": "New FI𝑓F"
},
"support": [
{
"address": "[email protected]",
"type": "email",
"purpose": "support"
},
{
"address": "https://diasp.example/support.html",
"type": "website",
"purpose": "support"
}
],
"software": {
"name": "diaspora",
"version": "0.5.0",
Expand Down
44 changes: 43 additions & 1 deletion schemas/2.2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"required": [
"version",
"instance",
"support",
"software",
"protocols",
"services",
Expand All @@ -22,7 +23,7 @@
"2.2"
]
},
"instance":{
"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,
Expand All @@ -34,6 +35,47 @@
}
}
},
"support": {
"description": "Promote support information",
"type": "array",
"items": {
"type": "object",
"required": [
"address",
"type",
"purpose"
],
"additionalProperties": false,
"properties": {
"address": {
"type": "string",
"pattern": "^.{0,2000}$"
},
"type": {
"type": "string",
"enum": [
"email",
"account",
"website"
]
},
"purpose": {
"type": "string",
"enum": [
"support",
"security",
"admin",
"abuse",
"about",
"donation",
6543 marked this conversation as resolved.
Show resolved Hide resolved
"code_of_conduct",
"terms_of_service",
"privacy_policy"
]
}
}
}
},
"software": {
"description": "Metadata about server software in use.",
"type": "object",
Expand Down
Loading