schema update
This commit is contained in:
parent
210de0a1c6
commit
4b9bb6e798
52 changed files with 94 additions and 154 deletions
134
schema.json
134
schema.json
|
@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue