Table of Contents

Class SchemaValidationResult

Namespace
Excalibur.Dispatch.Transport.Kafka
Assembly
Excalibur.Dispatch.Transport.Kafka.dll

Represents the result of validating a JSON Schema structure.

public sealed class SchemaValidationResult
Inheritance
SchemaValidationResult
Inherited Members
Extension Methods

Properties

Errors

Gets the validation error messages.

public IReadOnlyList<string> Errors { get; }

Property Value

IReadOnlyList<string>

IsValid

Gets a value indicating whether the schema is valid.

public bool IsValid { get; }

Property Value

bool

Success

Gets a successful validation result.

public static SchemaValidationResult Success { get; }

Property Value

SchemaValidationResult

Methods

Failure(IReadOnlyList<string>)

Creates a failed validation result with the specified errors.

public static SchemaValidationResult Failure(IReadOnlyList<string> errors)

Parameters

errors IReadOnlyList<string>

The validation error messages.

Returns

SchemaValidationResult

A failed validation result.

Failure(params string[])

Creates a failed validation result with the specified errors.

public static SchemaValidationResult Failure(params string[] errors)

Parameters

errors string[]

The validation error messages.

Returns

SchemaValidationResult

A failed validation result.