Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -8525,6 +8525,12 @@
],
"url": "https://raw.githubusercontent.com/ShaitanLyss/these/main/hecate/hecate-json-schema.json"
},
{
"name": "Revel Digital Gadget Definition File",
"description": "Revel Digital gadget definition file. See https://developer.reveldigital.com/gadgets for more information",
"fileMatch": ["gadget.yml", "gadget.yaml"],
"url": "https://www.schemastore.org/gadget-yaml.json"
},
{
"name": "Jujutsu (jj) VCS config",
"description": "Jujutsu (jj) configuration file",
Expand Down
220 changes: 220 additions & 0 deletions src/schemas/json/gadget-yaml.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://www.schemastore.org/gadget-yaml.json",
"title": "gadget.yaml",
"description": "Schema for Revel Digital gadget.yaml files. See https://developer.reveldigital.com/gadgets for more information.",
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
},
"title_url": {
"type": ["string", "null"],
"format": "uri"
},
"description": {
"type": "string"
},
"author": {
"type": "string"
},
"background": {
"type": "string"
},
"requirements": {
"type": "array",
"items": {
"type": "string"
}
},
"locales": {
"type": "array",
"items": {
"$ref": "#/definitions/Locale"
}
},
"prefs": {
"type": "array",
"items": {
"$ref": "#/definitions/Pref"
}
}
},
"required": [
"author",
"background",
"description",
"locales",
"prefs",
"requirements",
"title",
"title_url"
],
"definitions": {
"Locale": {
"type": "object",
"additionalProperties": false,
"properties": {
"messages": {
"type": "string",
"format": "uri"
},
"lang": {
"type": "string"
}
},
"required": ["messages"],
"title": "Locale"
},
"Pref": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"display_name": {
"type": "string"
},
"datatype": {
"type": "string"
},
"default_value": {
"$ref": "#/definitions/DefaultValue"
},
"required": {
"type": "boolean"
},
"options": {
"type": "array",
"items": {
"$ref": "#/definitions/Option"
}
},
"depends": {
"type": "array",
"items": {
"$ref": "#/definitions/Depend"
}
},
"multiple": {
"type": "boolean"
},
"multiline": {
"type": "boolean"
}
},
"required": [
"datatype",
"default_value",
"display_name",
"name",
"required"
],
"title": "Pref"
},
"Depend": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"any_of": {
"type": "array",
"items": {
"$ref": "#/definitions/AnyOf"
}
},
"all_of": {
"type": "array",
"items": {
"$ref": "#/definitions/AllOf"
}
},
"none_of": {
"type": "array",
"items": {
"$ref": "#/definitions/NoneOf"
}
}
},
"required": ["name"],
"title": "Depend"
},
"AnyOf": {
"type": "object",
"additionalProperties": false,
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["values"],
"title": "AnyOf"
},
"AllOf": {
"type": "object",
"additionalProperties": false,
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["values"],
"title": "AllOf"
},
"NoneOf": {
"type": "object",
"additionalProperties": false,
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["values"],
"title": "NoneOf"
},
"Option": {
"type": "object",
"additionalProperties": false,
"properties": {
"display_value": {
"type": "string"
},
"value": {
"type": ["string", "null"]
}
},
"required": ["display_value"],
"title": "Option"
},
"DefaultValue": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "number"
},
{
"type": "null"
},
{
"type": "string"
}
],
"title": "DefaultValue"
}
}
}
Loading