55 std::size_t max_errors = 16);
One JSON value: null, a boolean, a number, a string, an array or an object.
Definition json.hpp:22
A small strict JSON value, parser and deterministic writer (RFC 8259).
void CheckSchema(const JsonValue &schema)
Checks that schema uses only the supported keywords, each with a valid value.
bool JsonEquals(const JsonValue &a, const JsonValue &b)
JSON equality, as enum, const and uniqueItems use it: numbers by value (1 equals 1....
std::string StrictModeProblem(const JsonValue &schema)
Why schema can't be used with Anthropic's strict tool use, or "" if it can.
std::vector< SchemaError > ValidateJson(const JsonValue &schema, const JsonValue &value, std::size_t max_errors=16)
Checks value against schema.
One way a value fails a schema.
Definition json_schema.hpp:35
std::string message
Definition json_schema.hpp:38
std::string path
Where, as a JSON Pointer into the value: "" for the whole value, /items/0/name.
Definition json_schema.hpp:37