ci/woodpecker/push/cli Pipeline was successful
ci/woodpecker/push/core Pipeline was successful
ci/woodpecker/push/lsp Pipeline was successful
ci/woodpecker/push/web-db Pipeline was successful
ci/woodpecker/push/web-jobs Pipeline was successful
ci/woodpecker/push/web-lsp Pipeline was successful
ci/woodpecker/push/web-pieces Pipeline was successful
ci/woodpecker/push/web-worker Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
108 lines
2.1 KiB
JSON
108 lines
2.1 KiB
JSON
{
|
|
"title": "snippets",
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"description": "The title of the gist",
|
|
"type": "string",
|
|
"examples": [
|
|
"Example Gist Title"
|
|
]
|
|
},
|
|
"summary": {
|
|
"description": "A short summary of what this gist contains",
|
|
"type": "string",
|
|
"format": "paragraph",
|
|
"examples": [
|
|
"This gist contains a collection of utility functions for handling dates."
|
|
],
|
|
"nullable": true
|
|
},
|
|
"keywords": {
|
|
"description": "Relevant keywords for categorization",
|
|
"type": "string",
|
|
"format": "comma-separated",
|
|
"examples": [
|
|
"typescript, dates, utility"
|
|
],
|
|
"nullable": true
|
|
},
|
|
"url": {
|
|
"description": "An optional external URL for the gist (e.g., GitHub Gist)",
|
|
"type": "string",
|
|
"pattern": "^(http|https)://",
|
|
"examples": [
|
|
"https://gist.github.com/example"
|
|
],
|
|
"nullable": true
|
|
},
|
|
"date_added": {
|
|
"description": "The date the gist was created",
|
|
"type": "string",
|
|
"format": "date",
|
|
"examples": [
|
|
"2024-01-01"
|
|
],
|
|
"nullable": true
|
|
},
|
|
"date_updated": {
|
|
"description": "The date the gist was last updated",
|
|
"type": "string",
|
|
"format": "date",
|
|
"examples": [
|
|
"2024-01-02"
|
|
],
|
|
"nullable": true
|
|
},
|
|
"files": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"file": {
|
|
"type": "string",
|
|
"format": "asset",
|
|
"examples": [
|
|
".assets/path/to/script.js"
|
|
]
|
|
},
|
|
"name": {
|
|
"type": "string",
|
|
"description": "name of file",
|
|
"examples": [
|
|
"add-two-numbers.js"
|
|
]
|
|
},
|
|
"type": {
|
|
"description": "the type of file, either a snippet or attachment",
|
|
"type": "string",
|
|
"enum": [
|
|
"snippet",
|
|
"attachment"
|
|
],
|
|
"examples": [
|
|
"snippet"
|
|
]
|
|
},
|
|
"format": {
|
|
"type": "string",
|
|
"description": "file format or language to display",
|
|
"examples": [
|
|
"javascript"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"file"
|
|
]
|
|
},
|
|
"nullable": true
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"date_added"
|
|
],
|
|
"additionalProperties": true
|
|
}
|