cuddle/schemas/base.json

85 lines
2.1 KiB
JSON
Raw Normal View History

2022-08-09 13:23:30 +02:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"base": {
"title": "Base url from which to base current cuddle plan on",
"description": "Base url from which to construct current cuddle plan, is recursive",
"oneOf": [
{
"type": "string",
"title": "The url of the parameter"
},
{
"type": "boolean",
2022-08-09 13:26:41 +02:00
"title": "Whether it is enabled or not"
2022-08-09 13:23:30 +02:00
}
]
2022-08-09 17:53:53 +02:00
},
2022-08-10 23:31:07 +02:00
"vars": {
"type": "object",
"title": "your collection of variables to be available to cuddle",
"patternProperties": {
"^.*$": {
"anyOf": [
{
"type": "string"
},
{
"type": "object"
}
]
}
},
"additionalProperties": false
},
2022-08-09 17:53:53 +02:00
"scripts": {
"type": "object",
"title": "Scripts the cuddle cli can execute",
"description": "Scripts the cuddle cli can execute 'cuddle x my-awesome-script'",
2022-08-10 23:31:07 +02:00
"additionalProperties": false,
2022-08-09 17:53:53 +02:00
"patternProperties": {
"^.*$": {
"required": [
"type"
],
"additionalProperties": false
2022-08-09 17:53:53 +02:00
"properties": {
"type": {
"enum": [
"shell",
"dagger"
]
2022-08-10 12:34:04 +02:00
},
"description": {
"type": "string"
2022-08-10 23:31:07 +02:00
},
"vars": {
"type": "object",
"title": "your collection of variables to be available to cuddle",
"patternProperties": {
"^.*$": {
"anyOf": [
{
"type": "string"
},
{
"type": "object"
}
]
}
},
"additionalProperties": false
},
2022-08-09 17:53:53 +02:00
}
}
}
2022-08-09 13:23:30 +02:00
}
},
"required": [
"base"
],
"type": "object",
"title": "Cuddle base schema"
}