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

Schema (Draft 2020-12) and semantic validation using embedded schema data. More...

#include "fdl_validate.h"
#include "fdl_constants.h"
#include "fdl_schema_data.h"
#include <jsoncons_ext/jsonschema/jsonschema.hpp>
#include <algorithm>
#include <map>
#include <mutex>
#include <set>
#include <sstream>
#include <stdexcept>

Functions

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

Detailed Description

Schema (Draft 2020-12) and semantic validation using embedded schema data.

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.