fix(protocol): refresh generated failure JSON schemas

This commit is contained in:
2026-11-06 12:17:31 +09:00
parent 4664f225b3
commit dab8c019cb
2 changed files with 40 additions and 40 deletions
+20 -20
View File
@@ -99,25 +99,6 @@
"maxLength": 128, "maxLength": 128,
"minLength": 1 "minLength": 1
}, },
"Diagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"FailureContext": { "FailureContext": {
"description": "Common metadata is untrusted after deserialization. No audience label confers trust.", "description": "Common metadata is untrusted after deserialization. No audience label confers trust.",
"type": "object", "type": "object",
@@ -143,7 +124,7 @@
"diagnostics": { "diagnostics": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/$defs/Diagnostic" "$ref": "#/$defs/FailureDiagnostic"
}, },
"maxItems": 8 "maxItems": 8
}, },
@@ -165,6 +146,25 @@
"supplementary_omitted" "supplementary_omitted"
] ]
}, },
"FailureDiagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"OperationContext": { "OperationContext": {
"type": "object", "type": "object",
"properties": { "properties": {
+20 -20
View File
@@ -82,25 +82,6 @@
"maxLength": 128, "maxLength": 128,
"minLength": 1 "minLength": 1
}, },
"Diagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"FailureContext": { "FailureContext": {
"description": "Common metadata is untrusted after deserialization. No audience label confers trust.", "description": "Common metadata is untrusted after deserialization. No audience label confers trust.",
"type": "object", "type": "object",
@@ -126,7 +107,7 @@
"diagnostics": { "diagnostics": {
"type": "array", "type": "array",
"items": { "items": {
"$ref": "#/$defs/Diagnostic" "$ref": "#/$defs/FailureDiagnostic"
}, },
"maxItems": 8 "maxItems": 8
}, },
@@ -148,6 +129,25 @@
"supplementary_omitted" "supplementary_omitted"
] ]
}, },
"FailureDiagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"FailureEnvelope": { "FailureEnvelope": {
"description": "DTO/schema source only. Deserialization does not produce a ProjectedFailure.", "description": "DTO/schema source only. Deserialization does not produce a ProjectedFailure.",
"type": "object", "type": "object",