schema update

This commit is contained in:
JMARyA 2024-03-19 09:25:42 +01:00
parent 210de0a1c6
commit 4b9bb6e798
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
52 changed files with 94 additions and 154 deletions

View file

@ -6,7 +6,24 @@
"required": [
"obj"
],
"additionalProperties": false,
"properties": {
"android-id": {
"title": "Android Application ID",
"description": "The Android Application ID of the note",
"type": "string"
},
"flatpak-id": {
"title": "Flatpak Application ID",
"description": "The Flatpak Application ID of the note",
"type": "string"
},
"f-droid": {
"title": "F-Droid Page",
"description": "Link to the F-Droid Page of the note",
"type": "string",
"format": "uri"
},
"rev": {
"title": "Revision",
"description": "Date of last change to note",
@ -106,88 +123,41 @@
"science",
"science/unit"
]
}
},
"allOf": [
{
"if": {
"properties": {
"obj": {
"pattern": "^(application|emulator)"
}
}
},
"then": {
"properties": {
"android-id": {
"title": "Android Application ID",
"description": "The Android Application ID of the note",
"type": "string"
},
"flatpak-id": {
"title": "Flatpak Application ID",
"description": "The Flatpak Application ID of the note",
"type": "string"
},
"f-droid": {
"title": "F-Droid Page",
"description": "Link to the F-Droid Page of the note",
"type": "string",
"format": "uri"
}
}
}
},
{
"if": {
"properties": {
"obj": {
"pattern": "^website"
}
}
},
"then": {
"properties": {
"category": {
"title": "Category",
"description": "General category the website falls into",
"type": "string",
"enum": [
"server",
"finance",
"social",
"service",
"development",
"search",
"information",
"market",
"knowledge",
"board",
"company",
"shop",
"content",
"images",
"link-registry",
"api"
]
},
"status": {
"title": "Website Status",
"description": "Wether the website is up or down",
"type": [
"string",
"null"
],
"enum": [
"down",
"up"
]
}
},
"required": [
"category"
]
}
"category": {
"title": "Category",
"description": "General category the website falls into",
"type": "string",
"enum": [
"server",
"finance",
"social",
"service",
"development",
"search",
"information",
"market",
"knowledge",
"board",
"company",
"shop",
"content",
"images",
"link-registry",
"api"
]
},
"status": {
"title": "Website Status",
"description": "Wether the website is up or down",
"type": [
"string",
"null"
],
"enum": [
"down",
"up"
]
}
]
}
}