47 lines
1.3 KiB
JSON
47 lines
1.3 KiB
JSON
{
|
|
"title": "StrawBoss service configuration schema.",
|
|
"type": "object",
|
|
"properties": {
|
|
"artifactsRepo": { "type": "string" },
|
|
"authSecret": { "type": "string" },
|
|
"debug": { "type": "bool" },
|
|
"pwdCost": { "type": "integer" },
|
|
"projects": {
|
|
"title": "ProjectsList",
|
|
"type": "array",
|
|
"items": {
|
|
"title": "ProjectDefinition",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"repo": { "type": "string" },
|
|
"defaultBranch": { "type": "string" },
|
|
"cfgFilePath": { "type": "string" },
|
|
"envVars": {
|
|
"type": "object",
|
|
"patternProperties": { "^[\\w-]+$": { "type": "string" } }
|
|
}
|
|
},
|
|
"required": ["name", "repo"],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"users": {
|
|
"title": "UsersList",
|
|
"type": "array",
|
|
"items": {
|
|
"title": "UserDefinition",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"hashedPwd": { "type": "string" }
|
|
},
|
|
"required": ["name", "hashedPwd"],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"required": ["artifactsRepo", "authSecret", "pwdCost", "projects", "users"],
|
|
"additionalProperties": false
|
|
}
|