Skip to content

Commit a54d968

Browse files
committed
Merge git://github.com/garycourt/json-schema
2 parents e518da0 + d077cab commit a54d968

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

draft-zyp-json-schema-03.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<?rfc subcompact="no"?>
2121
<?rfc strict="no"?>
2222
<?rfc rfcedstyle="yes"?>
23-
<rfc category="info" docName="draft-zyp-json-schema-03" year="2010" ipr="trust200902">
23+
<rfc category="info" docName="draft-zyp-json-schema-03" ipr="trust200902">
2424
<front>
2525

2626

@@ -386,14 +386,15 @@ of this property MAY be a string, indicating the require property name. Or the v
386386
</section>
387387

388388
<section title="format"><t>This property indicates the type of data, content type, or microformat to be expected in the instance property values. A format attribute MAY be one of the values listed below, and if so, SHOULD adhere to the semantics describing for the format. A format SHOULD only be used give meaning to primitive types (string, integer, number, or boolean). Validators are not required to validate that the instance values conform to a format. The following formats are defined:</t>
389+
<t>
389390
<list>
390-
</t><t>date-time - This SHOULD be a date in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time. This is the recommended form of date/timestamp.
391+
<t>date-time - This SHOULD be a date in ISO 8601 format of YYYY-MM-DDThh:mm:ssZ in UTC time. This is the recommended form of date/timestamp.
391392
</t><t>date - This SHOULD be a date in the format of YYYY-MM-DD. It is recommended that you use the "date-time" format instead of "date" unless you need to transfer only the date part.
392393
</t><t>time - This SHOULD be a time in the format of hh:mm:ss. It is recommended that you use the "date-time" format instead of "time" unless you need to transfer only the time part.
393394
</t><t>utc-millisec - This SHOULD be the difference, measured in milliseconds, between the specified time and midnight, 00:00 of January 1, 1970 UTC. The value SHOULD be a number (integer or float).
394395
</t><t>regex - A regular expression, following the regular expression specification from ECMA 262/Perl 5.
395-
</t><t>color - This is a CSS color (like "#FF0000" or "red"), based on &css21.
396-
</t><t>style - This is a CSS style definition (like "color: red; background-color:#FFF"), based on &css21.
396+
</t><t>color - This is a CSS color (like "#FF0000" or "red"), based on <xref target='W3C.CR-CSS21-20070719'>CSS 2.1</xref>.
397+
</t><t>style - This is a CSS style definition (like "color: red; background-color:#FFF"), based on <xref target='W3C.CR-CSS21-20070719'>CSS 2.1</xref>.
397398
</t><t>phone - This SHOULD be a phone number (format MAY follow E.123).
398399
</t><t>uri - This value SHOULD be a URI..
399400
</t><t>email - This SHOULD be an email address.
@@ -402,6 +403,7 @@ of this property MAY be a string, indicating the require property name. Or the v
402403
</t><t>host-name - This SHOULD be a host-name.</t>
403404
<t>Additional custom formats MAY be defined with a URL to a definition of the format.</t>
404405
</list>
406+
</t>
405407
</section>
406408
<section title="maxDecimal">
407409
<t>This indicates the maximum number of decimal points.</t>
@@ -512,7 +514,7 @@ The value of the "rel" property indicates the name of the
512514
relation to the target resource. The relation to the target SHOULD be interpreted as specifically from the instance object that the schema (or sub-schema) applies to, not just the top level resource that contains the object within its hierarchy. If a resource JSON representation contains a sub object with a property interpreted as a link, that sub-object holds the relation with the target. A relation to target from the top level resource MUST be indicated with the schema describing the top level JSON representation.
513515
</t>
514516
<t>
515-
Relationship definitions SHOULD NOT be media type dependent, and users are encouraged to utilize existing accepted relation definitions, including those in existing relation registries (see &rfc4287). However, we define these relation here for clarity of normative interpretation within the context of JSON hyper schema defined relations:
517+
Relationship definitions SHOULD NOT be media type dependent, and users are encouraged to utilize existing accepted relation definitions, including those in existing relation registries (see <xref target='RFC4287'>RFC 4287</xref>). However, we define these relation here for clarity of normative interpretation within the context of JSON hyper schema defined relations:
516518
<list>
517519
<t>
518520
self - If the relation value is "self", when this property is encountered in

0 commit comments

Comments
 (0)