Skip to content

Commit 43149f4

Browse files
authored
fix(runner-context): Update Runner Context schema (#2517)
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent d82e0d5 commit 43149f4

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

internal/schemavalidators/external_schemas/runnercontext/runner-context-response-0.1.schema.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,25 @@
1010
},
1111
"errors": {
1212
"items": {
13-
"type": "string"
13+
"properties": {
14+
"code": {
15+
"type": "string",
16+
"description": "Error code for identification (e.g: PERMISSION_RULESETS PERMISSION_BRANCHES)"
17+
},
18+
"message": {
19+
"type": "string",
20+
"description": "Human-readable error message"
21+
}
22+
},
23+
"additionalProperties": false,
24+
"type": "object",
25+
"required": [
26+
"code",
27+
"message"
28+
]
1429
},
1530
"type": "array",
16-
"description": "Array of error messages"
31+
"description": "Array of error details with codes"
1732
}
1833
},
1934
"additionalProperties": false,
@@ -331,11 +346,6 @@
331346
},
332347
"type": "array",
333348
"description": "Array of repository configurations"
334-
},
335-
"org": {
336-
"items": true,
337-
"type": "array",
338-
"description": "Organization-level configuration"
339349
}
340350
},
341351
"additionalProperties": false,

0 commit comments

Comments
 (0)