Validate records against schema
validate_recordsValidates flat reversing-entry records against a camt.05x message type's JSON Schema. Returns a report with validity status, counts, and errors.
Instructions
Validate flat records against a message type's input JSON Schema.
Use this on in-memory reversing-entry records to catch structural/type
errors per row before generation. To validate a whole camt.05x *document*
(XML) against its XSD instead, use ``validate_statement``.
Returns a report ``{"valid": bool, "total": int, "valid_count": int,
"errors": [...]}``.
Args:
message_type: A supported ISO 20022 camt.05x message type.
records: One or more flat reversing-entry records to validate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| records | Yes | One or more flat reversing-entry records (each a dict of field name to value) to validate row-by-row against the message type's input JSON Schema. | |
| message_type | Yes | A supported ISO 20022 camt.05x message type string. Must be exactly one of: 'camt.052.001.14', 'camt.053.001.14', 'camt.054.001.14' (see list_message_types). |