Skip to content

Commit

Permalink
add titles and descriptions to the schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Teiem authored Feb 19, 2024
1 parent 5e346ef commit 9aaf6a5
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions data/bangs.schema.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,35 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Generated schema for Root",
"title": "Kagi Bangs Schema",
"description": "This schema defines the structure for bangs used by Kagi Search",
"type": "array",
"items": {
"type": "object",
"properties": {
"s": {
"type": "string",
"title": "Website Name",
"description": "The name of the website associated with the bang."
},
"d": {
"type": "string",
"title": "Domain",
"description": "The domain name of the website."
},
"t": {
"type": "string",
"title": "Trigger",
"description": "The specific trigger word or phrase used to invoke the bang."
},
"u": {
"type": "string",
"title": "Template URL",
"description": "The URL template to use when the bang is invoked, where `{{{s}}}` is replaced by the user's query."
},
"c": {
"type": "string",
"title": "Category",
"description": "The category of the website, if applicable.",
"enum": [
"Entertainment",
"Man Page",
Expand All @@ -19,23 +42,15 @@
"Translation"
]
},
"d": {
"type": "string"
},
"s": {
"type": "string"
},
"sc": {
"type": "string"
},
"t": {
"type": "string"
},
"u": {
"type": "string"
"type": "string",
"title": "Subcategory",
"description": "The subcategory of the website, if applicable."
},
"fmt": {
"type": "array",
"title": "Format",
"description": "The format flags indicating how the query should be processed.",
"uniqueItems": true,
"minItems": 0,
"maxItems": 3,
Expand All @@ -54,6 +69,7 @@
"s",
"t",
"u"
]
],
"additionalProperties": false
}
}
}

0 comments on commit 9aaf6a5

Please sign in to comment.