ci/woodpecker/pr/config Pipeline was successful
ci/woodpecker/pr/web Pipeline was successful
ci/woodpecker/pr/worker Pipeline was successful
ci/woodpecker/push/config Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
145 lines
3.4 KiB
JSON
145 lines
3.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["journal", "url", "auth"],
|
|
"properties": {
|
|
"version": { "default": 1, "const": 1, "type": "number" },
|
|
"journal": {
|
|
"minLength": 1,
|
|
"pattern": "^(?=[\\s\\S]*\\S)[^\\x00-\\x1f\\x7f-\\x9f]*(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
"url": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["app"],
|
|
"properties": {
|
|
"app": {
|
|
"anyOf": [
|
|
{
|
|
"minLength": 1,
|
|
"pattern": "^[hH][tT][tT][pP][sS]?://[^\\s/?#@\\\\]+/?(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"pattern": "(?:^|[^$])(?:\\$\\$)*\\$\\{[A-Z_][A-Z0-9_]*(?::-[^}]*)?\\}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"auth": {
|
|
"anyOf": [
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["credentials"],
|
|
"properties": {
|
|
"secret": {
|
|
"anyOf": [
|
|
{
|
|
"minLength": 32,
|
|
"pattern": "^(?=[\\s\\S]*\\S)[\\s\\S]*(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"pattern": "(?:^|[^$])(?:\\$\\$)*\\$\\{[A-Z_][A-Z0-9_]*(?::-[^}]*)?\\}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"credentials": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["username", "password"],
|
|
"properties": {
|
|
"username": {
|
|
"minLength": 1,
|
|
"pattern": "^(?=[\\s\\S]*\\S)[^\\x00-\\x1f\\x7f-\\x9f]*(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
"password": { "minLength": 1, "type": "string" }
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["oidc"],
|
|
"properties": {
|
|
"secret": {
|
|
"anyOf": [
|
|
{
|
|
"minLength": 32,
|
|
"pattern": "^(?=[\\s\\S]*\\S)[\\s\\S]*(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"pattern": "(?:^|[^$])(?:\\$\\$)*\\$\\{[A-Z_][A-Z0-9_]*(?::-[^}]*)?\\}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"oidc": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["issuer", "client_id", "client_secret"],
|
|
"properties": {
|
|
"issuer": {
|
|
"anyOf": [
|
|
{
|
|
"minLength": 1,
|
|
"pattern": "^[hH][tT][tT][pP][sS]?://[^\\s/?#@\\\\]+(?:/[^\\s?#\\\\]*)?(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"pattern": "(?:^|[^$])(?:\\$\\$)*\\$\\{[A-Z_][A-Z0-9_]*(?::-[^}]*)?\\}",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"client_id": {
|
|
"minLength": 1,
|
|
"pattern": "^(?=[\\s\\S]*\\S)[^\\x00-\\x1f\\x7f-\\x9f]*(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
"client_secret": { "minLength": 1, "type": "string" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"accounts": {
|
|
"default": [],
|
|
"type": "array",
|
|
"items": {
|
|
"additionalProperties": false,
|
|
"type": "object",
|
|
"required": ["account"],
|
|
"properties": {
|
|
"account": {
|
|
"minLength": 1,
|
|
"pattern": "^(?=[\\s\\S]*\\S)[^\\x00-\\x1f\\x7f-\\x9f]*(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
"label": {
|
|
"minLength": 1,
|
|
"pattern": "^(?=[\\s\\S]*\\S)[^\\x00-\\x1f\\x7f-\\x9f]*(?![\\s\\S])",
|
|
"type": "string"
|
|
},
|
|
"register": {
|
|
"anyOf": [
|
|
{ "const": "cash", "type": "string" },
|
|
{ "const": "investment", "type": "string" }
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|