Class JsonSchemaValidator
Validates JSON message bodies against a JSON Schema (draft 2020-12 and earlier).
Uses the JsonSchema.Net library internally.
The validator extracts the body as a string and parses it, or takes a
/ body directly.
public sealed class JsonSchemaValidator : IMessageValidator
Inheritance
Implements
Methods
Validate(IExchange)
Validates the exchange and returns a result indicating success or failure with error details.
public ValidationResult Validate(IExchange exchange)
Constructors
JsonSchemaValidator(JsonSchema)
Creates a validator from a pre-parsed .
JsonSchemaValidator(string)
Creates a validator from a JSON Schema string.