Show / Hide Table of Contents

Class UriReferenceFormatValidator

Handles uri-reference format validation by using a regular expression.

Inheritance
System.Object
RegexBasedFormatValidator
UriReferenceFormatValidator
Implements
IFormatValidator
Inherited Members
RegexBasedFormatValidator.Validate(JsonValue)
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 UriReferenceFormatValidator : RegexBasedFormatValidator, IFormatValidator
Remarks

The regular expression used is:

^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?

Properties

| Improve this Doc View Source

Format

Gets the format this validator handles.

Declaration
public override string Format { get; }
Property Value
Type Description
System.String
Overrides
RegexBasedFormatValidator.Format
| 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 override JsonSchemaVersion SupportedBy { get; }
Property Value
Type Description
JsonSchemaVersion
Overrides
RegexBasedFormatValidator.SupportedBy

Implements

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