|
FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
|
C ABI wrappers for document validation. More...
Data Structures | |
| struct | fdl_validation_result |
| Concrete type backing the opaque fdl_validation_result_t handle. More... | |
Functions | |
| fdl_validation_result_t * | fdl_doc_validate (const fdl_doc_t *doc) |
| Run schema and semantic validators on the document. | |
| uint32_t | fdl_validation_result_error_count (const fdl_validation_result_t *result) |
| Get the number of validation errors. | |
| const char * | fdl_validation_result_error_at (const fdl_validation_result_t *result, uint32_t index) |
| Get a specific error message by index. | |
| void | fdl_validation_result_free (fdl_validation_result_t *result) |
| Free a validation result. | |
C ABI wrappers for document validation.
| fdl_validation_result_t * fdl_doc_validate | ( | const fdl_doc_t * | doc | ) |
Run schema and semantic validators on the document.
Schema validation (JSON Schema Draft 2020-12) runs first; semantic validators (referential integrity, value range checks) run only if the document is structurally valid.
| doc | Document to validate. |
| uint32_t fdl_validation_result_error_count | ( | const fdl_validation_result_t * | result | ) |
Get the number of validation errors.
| result | Validation result handle. |
| const char * fdl_validation_result_error_at | ( | const fdl_validation_result_t * | result, |
| uint32_t | index | ||
| ) |
Get a specific error message by index.
| result | Validation result handle. |
| index | Zero-based error index. |
| void fdl_validation_result_free | ( | fdl_validation_result_t * | result | ) |
Free a validation result.
Safe to call with NULL.
| result | Validation result to free, or NULL (no-op). |