Add embedded response schema registry

This commit is contained in:
2026-07-03 16:40:56 +00:00
parent 8a4339913b
commit 54b9851f65
4 changed files with 315 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "notarius.test_artifact",
"type": "object",
"additionalProperties": false,
"required": ["value"],
"properties": {
"value": {
"type": "string",
"minLength": 1
},
"source_refs": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["source_id", "unit_id"],
"properties": {
"source_id": {
"type": "string",
"minLength": 1
},
"unit_id": {
"type": "string",
"minLength": 1
}
}
}
}
}
}

View File

@@ -0,0 +1,21 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "notarius.test_validator_decision",
"type": "object",
"additionalProperties": false,
"required": ["accepted", "reason"],
"properties": {
"accepted": {
"type": "boolean"
},
"reason": {
"type": "string",
"minLength": 1
},
"confidence": {
"type": "number",
"minimum": 0,
"maximum": 1
}
}
}