gtopt/json/json_parse_policy.hpp file

Shared daw::json parse policies for gtopt.

Centralises the daw::json parse-flag combinations used across production code and the unit-test suite. All policies are strict (UseExactMappingsByDefault::yes) — unknown JSON fields are rejected with a descriptive diagnostic instead of being silently ignored. This catches typos and schema drift (e.g. renamed fields) early, both for users and for the test fixtures that exercise the parser.

// Production / tests:
auto planning = daw::json::from_json<Planning>(
    json_string, gtopt::StrictParsePolicy);

Namespaces

namespace gtopt