orquestador/schemas/integration-results.schema....

119 lines
2.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Normalized example integration results v1",
"$defs": {
"CustomerResult": {
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"customerId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"found"
],
"additionalProperties": false,
"allOf": [
{
"if": {
"properties": {
"found": {
"const": true
}
}
},
"then": {
"required": [
"customerId"
]
}
}
]
},
"BureauResult": {
"type": "object",
"properties": {
"score": {
"type": "number"
},
"consultationId": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"score",
"consultationId"
],
"additionalProperties": false
},
"DocumentValidationResult": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"VALID",
"INVALID"
]
},
"reasonCodes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,99}$"
},
"minItems": 0,
"maxItems": 100
}
},
"required": [
"status",
"reasonCodes"
],
"additionalProperties": false
},
"RegisteredDocumentResult": {
"type": "object",
"properties": {
"documentId": {
"type": "string",
"format": "uuid"
},
"documentType": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_.-]{0,99}$"
},
"mimeType": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"sizeBytes": {
"type": "integer",
"minimum": 0
},
"checksum": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"documentId",
"documentType",
"mimeType",
"sizeBytes",
"checksum"
],
"additionalProperties": false
}
}
}