Home UnknownFormat Class
UnknownFormat Class
Cancel

UnknownFormat Class

Namespace: Json.Schema

Inheritance: UnknownFormat 🡒 Format 🡒 object

Represents an unknown format.

Properties

NameTypeSummary
KeystringThe format key.

Constructors

UnknownFormat(string key)

Creates a new Json.Schema.UnknownFormat instance.

Declaration

1
public UnknownFormat(string key)
ParameterTypeDescription
keystringThe key.

Methods

Validate(JsonNode node, out string errorMessage)

Validates an instance against a format and provides an error message.

Declaration

1
public override bool Validate(JsonNode node, out string errorMessage)
ParameterTypeDescription
nodeJsonNodeThe node to validate.
errorMessageout stringAn error message.

Returns

true. Override to return another value.

Contents