Interface | Description |
---|---|
FormatAttribute |
Interface for a format attribute validator
|
Class | Description |
---|---|
AbstractFormatAttribute |
Base abstract class for a format attribute
|
The format
keyword plays a particular role in JSON Schema
validation, since it is the only keyword performing semantic validation.
Note that supporting it is optional, and that implementations are
asked to provide a way to deactivate format checking on demand. This
implementation offers this option.
Draft v4 defines a narrower subset of format attributes 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 IPv4 addresses.
Copyright © 2014. All Rights Reserved.