Home Formats Class
Formats Class
Cancel

Formats Class

Namespace: Json.Schema

Inheritance: Formats 🡒 object

The formats supported by JSON Schema base specifications.

Fields

NameTypeSummary
DateFormatDefines the date format.
DateTimeFormatDefines the date-time format.
DurationFormatDefines the duration format.
EmailFormatDefines the email format.
HostnameFormatDefines the hostname format.
IdnEmailFormatDefines the idn-email format.
IdnHostnameFormatDefines the idn-hostname format.
Ipv4FormatDefines the ipv4 format.
Ipv6FormatDefines the ipv6 format.
IriFormatDefines the iri format.
IriReferenceFormatDefines the iri-reference format.
JsonPointerFormatDefines the json-pointer format.
RegexFormatDefines the regex format.
RelativeJsonPointerFormatDefines the relative-json-pointer format.
TimeFormatDefines the time format.
UriFormatDefines the uri format.
UriReferenceFormatDefines the uri-reference format.
UriTemplateFormatDefines the uri-template format.
UuidFormatDefines the uuid format.

Methods

CreateUnknown(string name)

Creates an unknown format.

Declaration

1
public static Format CreateUnknown(string name)
ParameterTypeDescription
namestringThe format key.

Returns

A Json.Schema.Format instance.

Get(string key)

Gets a format by its key.

Declaration

1
public static Format Get(string key)
ParameterTypeDescription
keystringThe key.

Returns

The specified format, if known; otherwise null.

Register(Format format)

Registers a new format.

Declaration

1
public static void Register(Format format)
ParameterTypeDescription
formatFormatThe format.
Contents