Skip to content

Commit 6dd7fa0

Browse files
committed
chore(schema): publish structured claim contracts
Signed-off-by: Jeremi Joslin <jeremi@joslin.fr>
1 parent 995512d commit 6dd7fa0

1 file changed

Lines changed: 80 additions & 0 deletions

File tree

‎schemas/registry-notary.config.schema.json‎

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2454,9 +2454,89 @@
24542454
"type"
24552455
],
24562456
"type": "object"
2457+
},
2458+
{
2459+
"additionalProperties": false,
2460+
"properties": {
2461+
"fields": {
2462+
"additionalProperties": {
2463+
"$ref": "#/$defs/RelayOutputObjectFieldContract"
2464+
},
2465+
"type": "object"
2466+
},
2467+
"max_bytes": {
2468+
"format": "uint32",
2469+
"minimum": 0,
2470+
"type": "integer"
2471+
},
2472+
"nullable": {
2473+
"default": false,
2474+
"type": "boolean"
2475+
},
2476+
"type": {
2477+
"const": "object",
2478+
"type": "string"
2479+
}
2480+
},
2481+
"required": [
2482+
"type",
2483+
"max_bytes",
2484+
"fields"
2485+
],
2486+
"type": "object"
2487+
},
2488+
{
2489+
"additionalProperties": false,
2490+
"properties": {
2491+
"items": {
2492+
"$ref": "#/$defs/RelayOutputContract"
2493+
},
2494+
"max_bytes": {
2495+
"format": "uint32",
2496+
"minimum": 0,
2497+
"type": "integer"
2498+
},
2499+
"max_items": {
2500+
"format": "uint16",
2501+
"maximum": 65535,
2502+
"minimum": 0,
2503+
"type": "integer"
2504+
},
2505+
"nullable": {
2506+
"default": false,
2507+
"type": "boolean"
2508+
},
2509+
"type": {
2510+
"const": "array",
2511+
"type": "string"
2512+
}
2513+
},
2514+
"required": [
2515+
"type",
2516+
"max_bytes",
2517+
"max_items",
2518+
"items"
2519+
],
2520+
"type": "object"
24572521
}
24582522
]
24592523
},
2524+
"RelayOutputObjectFieldContract": {
2525+
"additionalProperties": false,
2526+
"properties": {
2527+
"required": {
2528+
"type": "boolean"
2529+
},
2530+
"schema": {
2531+
"$ref": "#/$defs/RelayOutputContract"
2532+
}
2533+
},
2534+
"required": [
2535+
"required",
2536+
"schema"
2537+
],
2538+
"type": "object"
2539+
},
24602540
"RequestVariableConfig": {
24612541
"additionalProperties": false,
24622542
"properties": {

0 commit comments

Comments
 (0)