Show / Hide Table of Contents

Class UriTemplateFormatValidator

Handles uri-template format validation by checking that the value is a well-formed regular expression string that can also validate a URI.

Inheritance
System.Object
UriTemplateFormatValidator
Implements
IFormatValidator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Manatee.Json.Schema
Assembly: Manatee.Json.dll
Syntax
public class UriTemplateFormatValidator : IFormatValidator

Properties

| Improve this Doc View Source

Format

Gets the format this validator handles.

Declaration
public string Format { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Instance

A singleton instance of the validator.

Declaration
public static IFormatValidator Instance { get; }
Property Value
Type Description
IFormatValidator
| Improve this Doc View Source

SupportedBy

Gets the JSON Schema draft versions supported by this format.

Declaration
public JsonSchemaVersion SupportedBy { get; }
Property Value
Type Description
JsonSchemaVersion

Methods

| Improve this Doc View Source

Validate(JsonValue)

Validates a value.

Declaration
public bool Validate(JsonValue value)
Parameters
Type Name Description
JsonValue value

The value to validate.

Returns
Type Description
System.Boolean

True if value matches the format; otherwise false.

Implements

IFormatValidator
  • Improve this Doc
  • View Source
Back to top Generated by DocFX