Class ValidateJsonSchemaStringDefinition

Assembly: redb.Route.dll

Leaf definition that validates the exchange body against a JSON Schema specified as a string.

public sealed class ValidateJsonSchemaStringDefinition : ProcessorDefinition, IProcessorDefinition

Inheritance

Object→ProcessorDefinition→ValidateJsonSchemaStringDefinition

Implements

Inherited Members

Properties

SchemaJson

Gets the JSON Schema string.

public string SchemaJson { get; }

ThrowOnFailure

Gets whether a validation failure throws an exception.

public bool ThrowOnFailure { get; }

Methods

CreateProcessor(IRouteContext)

Compile this node into a runtime processor.

public override IProcessor CreateProcessor(IRouteContext context)

Constructors

ValidateJsonSchemaStringDefinition(string, bool)

Creates a validate definition from a JSON Schema string.