Files
yavsc/src/cli/jsonSchema
2019-06-22 19:34:39 +01:00

97 lines
1.6 KiB
Plaintext

{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "CiBuildSettings",
"type": "object",
"additionalProperties": false,
"required": [
"build"
],
"properties": {
"env": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"build": {
"minLength": 1,
"oneOf": [
{
"$ref": "#/definitions/Command"
}
]
},
"prepare": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/Command"
}
]
},
"post_build": {
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/definitions/Command"
}
]
},
"emails": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
}
},
"definitions": {
"Command": {
"type": "object",
"additionalProperties": false,
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"minLength": 1
},
"args": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"env": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"working_dir": {
"type": [
"null",
"string"
]
}
}
}
}
}