Home Format Class
Format Class
Cancel

Format Class

Namespace: Json.Schema

Inheritance: Format 🡒 object

Represents a format.

Properties

NameTypeSummary
KeystringThe format key.

Constructors

Format(string key)

Creates a new Json.Schema.Format.

Declaration

1
public Format(string key)
ParameterTypeDescription
keystringThe format key.

Methods

Validate(JsonNode node, out string errorMessage)

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

Declaration

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

Returns

true. Override to return another value.

Contents