| Class | Description |
|---|---|
| AbstractDateFormatAttribute |
Abstract class for date/time related format attributes
|
| FormatAttribute |
Base class for a format attribute
|
| IPV4FormatAttribute |
Validator for both the
ip-address (draft v3) and ipv4 (draft
v4) format attributes. |
The format keyword is defined by section 5.23 of JSON Schema draft
v3, and (currently) section 7 of the next validation draft.
Draft v4 defines a narrower subset than draft v3. The following format attributes are common to both draft v3 and draft v4:
date-time;email;host-name;ipv6;regex;uri.Draft v3 defines the following additional attributes:
date;phone;time;utc-millisec;color (unsupported);style (unsupported).Additionally, there is an attribute named ip-address in draft v3,
and ipv4 in draft v4, which can validate IP addresses. This
implementation also adds media-type to allow further self-validation
of draft v3's links schema.
Other format attributes not defined by any of these drafts can be found in a sister project: json-schema-formats.
Copyright © 2013. All Rights Reserved.