application/json
Structured response bodyBody structurat al răspunsului
Complete request schemaSchema completă a cererii
{
"oneOf": [
{
"$ref": "#/components/schemas/PublishReleaseRequest",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"description",
"contract_version_id",
"transform_version_id",
"template_version_id",
"case_id"
],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"description": {
"type": "string",
"maxLength": 2000
},
"contract_version_id": {
"type": "string",
"format": "uuid"
},
"transform_version_id": {
"type": "string",
"format": "uuid"
},
"template_version_id": {
"type": "string",
"format": "uuid"
},
"case_id": {
"type": "string",
"format": "uuid"
}
}
},
{
"$ref": "#/components/schemas/CanonicalReleaseValidationRequest",
"type": "object",
"additionalProperties": false,
"required": [
"processing_kind",
"name",
"description",
"ingestion_model_version_id",
"contract_version_id",
"transform_version_id"
],
"properties": {
"processing_kind": {
"type": "string",
"enum": [
"transformation",
"document_generation"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 160
},
"description": {
"type": "string",
"maxLength": 2000
},
"ingestion_model_version_id": {
"type": "string",
"format": "uuid"
},
"node_address": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*){1,15}$",
"maxLength": 1024
},
"input_mode": {
"type": "string",
"enum": [
"submission",
"parent_output"
]
},
"producer_node_address": {
"type": "string",
"pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*){1,15}$",
"maxLength": 1024
},
"producer_release_id": {
"type": "string",
"format": "uuid"
},
"producer_release_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"validation_input": {
"x-docula-max-bytes": 1048576
},
"validation_input_hash": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"contract_version_id": {
"type": "string",
"format": "uuid"
},
"transform_version_id": {
"type": "string",
"format": "uuid"
},
"template_version_id": {
"type": "string",
"format": "uuid"
},
"case_id": {
"type": "string",
"format": "uuid"
}
},
"allOf": [
{
"if": {
"properties": {
"processing_kind": {
"const": "document_generation"
}
},
"required": [
"processing_kind"
]
},
"then": {
"required": [
"template_version_id"
]
}
},
{
"if": {
"properties": {
"processing_kind": {
"const": "transformation"
}
},
"required": [
"processing_kind"
]
},
"then": {
"not": {
"required": [
"template_version_id"
]
}
}
},
{
"oneOf": [
{
"required": [
"case_id"
],
"not": {
"anyOf": [
{
"required": [
"node_address"
]
},
{
"required": [
"input_mode"
]
},
{
"required": [
"producer_node_address"
]
},
{
"required": [
"producer_release_id"
]
},
{
"required": [
"producer_release_hash"
]
},
{
"required": [
"validation_input"
]
},
{
"required": [
"validation_input_hash"
]
}
]
}
},
{
"required": [
"node_address",
"input_mode",
"case_id"
],
"properties": {
"processing_kind": {
"const": "transformation"
},
"input_mode": {
"const": "submission"
}
},
"not": {
"anyOf": [
{
"required": [
"producer_node_address"
]
},
{
"required": [
"producer_release_id"
]
},
{
"required": [
"producer_release_hash"
]
},
{
"required": [
"validation_input"
]
}
]
}
},
{
"required": [
"node_address",
"input_mode",
"producer_node_address",
"producer_release_id",
"producer_release_hash",
"validation_input"
],
"properties": {
"input_mode": {
"const": "parent_output"
}
},
"not": {
"required": [
"case_id"
]
}
}
]
}
]
}
]
}{
"name": "synthetic-example",
"description": "synthetic-example",
"contract_version_id": "11111111-1111-4111-8111-111111111111",
"transform_version_id": "11111111-1111-4111-8111-111111111111",
"template_version_id": "11111111-1111-4111-8111-111111111111",
"case_id": "11111111-1111-4111-8111-111111111111"
}