Files
pyrofetes-frontend/node_modules/@angular-devkit/architect/src/progress-schema.json
CHEVALLIER Abel cb235644dc init
2025-11-13 16:23:22 +01:00

84 lines
1.7 KiB
JSON
Executable File

{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "BuilderProgressSchema",
"title": "Progress schema for builders.",
"type": "object",
"allOf": [
{
"type": "object",
"oneOf": [
{
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": ["stopped"]
}
},
"required": ["state"]
},
{
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": ["waiting"]
},
"status": {
"type": "string"
}
},
"required": ["state"]
},
{
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": ["running"]
},
"current": {
"type": "number",
"minimum": 0
},
"total": {
"type": "number",
"minimum": 0
},
"status": {
"type": "string"
}
},
"required": ["state"]
},
{
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": ["error"]
},
"error": true
},
"required": ["state"]
}
]
},
{
"type": "object",
"properties": {
"builder": {
"type": "object"
},
"target": {
"type": "object"
},
"id": {
"type": "number"
}
},
"required": ["builder", "id"]
}
]
}