Package dev.tachyonmcp.api.json
Interface JsonSchemaValidator
- All Known Implementing Classes:
NetworkntJsonSchemaValidator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Validates JSON data against a JSON Schema.
- Author:
- Konstantin Pavlov
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonSchemaValidatornoop()Returns the no-op validator singleton that accepts all input.validate(JsonSchema schema, JsonDocument document) Validates the given JSON document against the schema and returns any errors.
-
Method Details
-
validate
Validates the given JSON document against the schema and returns any errors. -
noop
Returns the no-op validator singleton that accepts all input. Passing this instance disables validation entirely, including the parsing work needed to prepare data for validation.
-