|
cxxmcp 1.1.6
C++ MCP SDK
|
Interface for integrating a JSON Schema validator implementation. More...
#include <schema_validator.hpp>
Public Member Functions | |
| virtual core::Result< core::Unit > | validate (const protocol::Json &schema, const protocol::Json &instance, const SchemaValidationContext &context) const =0 |
| Validate an instance against a schema. | |
Interface for integrating a JSON Schema validator implementation.
The SDK owns the validation call sites and error mapping. Implementations can delegate to nlohmann-json-schema-validator, valijson, or another JSON Schema engine without making that dependency part of the core SDK.
|
pure virtual |
Validate an instance against a schema.