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,
"minLength": 1
},
"Diagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"FailureContext": {
"description": "Common metadata is untrusted after deserialization. No audience label confers trust.",
"type": "object",
@@ -143,7 +124,7 @@
"diagnostics": {
"type": "array",
"items": {
"$ref": "#/$defs/Diagnostic"
"$ref": "#/$defs/FailureDiagnostic"
},
"maxItems": 8
},
@@ -165,6 +146,25 @@
"supplementary_omitted"
]
},
"FailureDiagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"OperationContext": {
"type": "object",
"properties": {
+20 -20
View File
@@ -82,25 +82,6 @@
"maxLength": 128,
"minLength": 1
},
"Diagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"FailureContext": {
"description": "Common metadata is untrusted after deserialization. No audience label confers trust.",
"type": "object",
@@ -126,7 +107,7 @@
"diagnostics": {
"type": "array",
"items": {
"$ref": "#/$defs/Diagnostic"
"$ref": "#/$defs/FailureDiagnostic"
},
"maxItems": 8
},
@@ -148,6 +129,25 @@
"supplementary_omitted"
]
},
"FailureDiagnostic": {
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 128,
"minLength": 1
},
"explanation": {
"type": "string",
"maxLength": 2048,
"minLength": 1
}
},
"required": [
"code",
"explanation"
]
},
"FailureEnvelope": {
"description": "DTO/schema source only. Deserialization does not produce a ProjectedFailure.",
"type": "object",