Skip to content

Instantly share code, notes, and snippets.

@TorstenDittmann
Last active July 27, 2023 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TorstenDittmann/ab390a733a1cb66a3a3d00a0f3fcec31 to your computer and use it in GitHub Desktop.
Save TorstenDittmann/ab390a733a1cb66a3a3d00a0f3fcec31 to your computer and use it in GitHub Desktop.
schema.json
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"items": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"icon": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"tagline": {
"type": "string"
},
"permissions": {
"type": "array",
"items": [
{
"type": "string"
}
]
},
"events": {
"type": "array",
"items": [
{
"type": "string"
}
]
},
"useCases": {
"type": "array",
"items": [
{
"type": "string"
}
]
},
"cron": {
"type": "string"
},
"timeout": {
"type": "integer"
},
"instructions": {
"type": "string"
},
"vcsProvider": {
"type": "string"
},
"vcsOwnerName": {
"type": "string"
},
"vcsRepositoryName": {
"type": "string"
},
"runtimes": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"entrypoint": {
"type": "string"
},
"commands": {
"type": "string"
},
"rootDirectory": {
"type": "string"
}
},
"required": [
"name",
"entrypoint",
"commands",
"vcsRootDirectory"
]
}
]
},
"variables": {
"type": "array",
"items": [
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"value": {
"type": "string"
},
"placeholder": {
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"name",
"description",
"value",
"placeholder",
"required"
]
}
]
}
},
"required": [
"icon",
"id",
"name",
"tagline",
"useCases",
"instructions",
"vcsProvider",
"vcsOwnerName",
"vcsRepositoryName",
"runtimes"
]
}
]
}
},
"required": [
"$schema",
"items"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment