Class ValidatorEndpointOptions

Assembly: redb.Route.dll

Options for the validator endpoint.

public sealed class ValidatorEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→ValidatorEndpointOptions

Inherited Members

Properties

Format

Explicit format override: json or xml. If not set, auto-detected from file extension.

public string? Format { get; set; }

SchemaPath

Path to the schema file (JSON Schema or XSD).

public string SchemaPath { get; set; }

SchemaRoot

For XSD: the directory the schema's imports and includes stay under, relative to the schema's directory

public string? SchemaRoot { get; set; }

TargetNamespace

Target namespace for XSD schemas (optional).

public string? TargetNamespace { get; set; }

ThrowOnFailure

Whether to throw on validation failure. Default: true.

public bool ThrowOnFailure { get; set; }

Methods

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()