FDL Core Library
ASC Framing Decision List — C/C++ Reference Implementation
Loading...
Searching...
No Matches
Data Structures | Functions
fdl_validate.h File Reference

Internal validation — JSON Schema + semantic checks. More...

#include <jsoncons/json.hpp>
#include <string>
#include <vector>

Go to the source code of this file.

Data Structures

struct  fdl::detail::ValidationResult
 Result of schema + semantic validation. More...
 

Functions

ValidationResult fdl::detail::validate (const ojson &fdl)
 Run schema validation followed by semantic validators.
 

Detailed Description

Internal validation — JSON Schema + semantic checks.

Schema validation (Draft 2020-12) runs first using embedded schema data. Semantic validators (referential integrity, value range checks) run only if the document passes schema validation.

Function Documentation

◆ validate()

ValidationResult fdl::detail::validate ( const ojson fdl)

Run schema validation followed by semantic validators.

Schema errors are prefixed with "Schema Error:". Semantic errors are only run if schema validation passes.

Parameters
fdlJSON document to validate.
Returns
Validation result with collected errors.