Complete response schemaSchema completă a răspunsului
{
"$ref": "#/components/schemas/CanonicalTemplateTestResult",
"type": "object",
"additionalProperties": false,
"required": [
"valid",
"errors",
"correlation_id"
],
"properties": {
"valid": {
"type": "boolean"
},
"result": {
"type": "object",
"additionalProperties": false,
"required": [
"template_id",
"draft_revision",
"template_hash",
"input_hash",
"bindings_hash",
"docx",
"pdf"
],
"properties": {
"template_id": {
"type": "string",
"format": "uuid"
},
"draft_revision": {
"type": "integer",
"minimum": 1
},
"template_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"input_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"bindings_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"docx": {
"$ref": "#/components/schemas/CanonicalArtifactProof",
"type": "object",
"additionalProperties": false,
"required": [
"media_type",
"byte_size",
"content_hash"
],
"properties": {
"media_type": {
"type": "string",
"enum": [
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf"
]
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 26214400
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
}
}
},
"pdf": {
"$ref": "#/components/schemas/CanonicalArtifactProof",
"type": "object",
"additionalProperties": false,
"required": [
"media_type",
"byte_size",
"content_hash"
],
"properties": {
"media_type": {
"type": "string",
"enum": [
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf"
]
},
"byte_size": {
"type": "integer",
"minimum": 1,
"maximum": 26214400
},
"content_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
}
}
}
}
},
"errors": {
"type": "array",
"maxItems": 100,
"items": {
"$ref": "#/components/schemas/ConfigurationIssue",
"type": "object",
"additionalProperties": false,
"required": [
"code",
"stage",
"resource_kind",
"message",
"correlation_id"
],
"properties": {
"code": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"stage": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"resource_kind": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"resource_id": {
"type": "string",
"maxLength": 128
},
"path": {
"type": "string",
"maxLength": 512
},
"message": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"dependency": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-z][a-z0-9_.:-]{0,63}$"
},
"context": {
"type": "object",
"maxProperties": 16,
"additionalProperties": {
"type": "string",
"maxLength": 256
}
},
"correlation_id": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
}
}
},
"correlation_id": {
"type": "string",
"minLength": 1
}
}
}