Class DateFormatValidator
Handles date
format validation by attempting to parse against the yyyy-MM-dd
format (ISO-8601 compatible).
Inheritance
System.Object
DateFormatValidator
Implements
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 DateFormatValidator : IFormatValidator
Properties
| Improve this Doc View SourceFormat
Gets the format this validator handles.
Declaration
public string Format { get; }
Property Value
Type | Description |
---|---|
System.String |
Instance
A singleton instance of the validator.
Declaration
public static IFormatValidator Instance { get; }
Property Value
Type | Description |
---|---|
IFormatValidator |
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 SourceValidate(JsonValue)
Validates a value.
Declaration
public virtual bool Validate(JsonValue value)
Parameters
Type | Name | Description |
---|---|---|
JsonValue | value | The value to validate. |
Returns
Type | Description |
---|---|
System.Boolean | True if |