"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "DecretosConta eBancária",
Ofícios",
"description": "Schema para envio de decretoscontas e ofíciosbancárias por unidade gestora",
"type": "object",
"properties": {
"timestamp": {
"type": "string",
"pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)\\.\\d{3,6}$",
"examples": ["2025-09-11T15:30:00.123456"]
},
"decretosOficios"contasBancarias": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"codigoUnidadeGestora"numeroContaBancaria": {
"type": "string",
"minLength": 6,
1,
"maxLength": 6,
13,
"pattern": "^[A-Z0-9]+$"
},
"situacao": {
"type": "string",
"enum": ["ATIVA", "INATIVA"]
},
"codigoBanco": {
"type": "string",
"minLength": 3,
"maxLength": 3,
"pattern": "^[0-9]+$"
},
"numeroDecretoOficio"numeroAgencia": {
"type": "string",
"minLength": 8,
1,
"maxLength": 8,
6,
"pattern": "^[A-Z0-9]+$"
},
"descricaoContaBancaria": {
"type": "string",
"minLength": 10,
"maxLength": 100
},
"tipoContaBancaria": {
"type": "string",
"minLength": 1,
"maxLength": 1,
"pattern": "^[0-9]+$"
},
"numeroLei"cnpjGerenciaContaBancaria": {
"type": "string",
"minLength": 8,
14,
"maxLength": 8,
14,
"pattern": "^[0-A-Z0-9]+$"
},
"dataDecretoOficio"action": {
"type": "string",
"format": "date"
},
"tipoDocumento": {
"type": "integer",
"enum": [
"DECRETO",
"OFICIO"
],
},
"action": {
"type": "string",
"enum": [
"CREATE",
"UPDATE",
"DELETE"
]
]
}
}
},
"required": [
"codigoUnidadeGestora"numeroContaBancaria",
"numeroDecretoOficio"situacao",
"numeroLei"codigoBanco",
"dataDecretoOficio"numeroAgencia",
"tipoDocumento"descricaoContaBancaria",
"tipoContaBancaria",
"cnpjGerenciaContaBancaria",
"action"
],
"additionalProperties": false
}
}
},
"required": ["timestamp", "decretosOficios"contasBancarias"],
"additionalProperties": false
}