You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -301,7 +304,7 @@ If the property is not defined or is not in this list, than any type of value is
301
304
<t>This should be an object type definition, which is an object with property definitions that correspond to instance object properties. When the instance value is an object, the property values of the instance object must conform to the property definitions in this object. In this object, each property definition's value should be a schema, and the property's name should be the name of the instance property that it defines.</t>
302
305
</section>
303
306
<sectiontitle="items">
304
-
<t>This should be a schema or an array of schemas. When this is an object/schema and the instance value is an array, all the items in the array must conform to this schema. When this is an array of schemas and the instance value is an array, each position in the instance array must conform to the schema in the corresponding position for this array. This called tuple typing. When tuple typing is used, additional items are allowed, disallowed, or constrained by the additionalProperties attribute using the same rules as extra properties for objects..</t>
307
+
<t>This should be a schema or an array of schemas. When this is an object/schema and the instance value is an array, all the items in the array must conform to this schema. When this is an array of schemas and the instance value is an array, each position in the instance array must conform to the schema in the corresponding position for this array. This called tuple typing. When tuple typing is used, additional items are allowed, disallowed, or constrained by the additionalProperties attribute using the same rules as extra properties for objects. The default value is an empty schema which allows any value for items in the instance array.</t>
305
308
</section>
306
309
<sectiontitle="optional">
307
310
<t>This indicates that the instance property in the instance object is optional. This is false by default.</t>
@@ -348,6 +351,9 @@ of this property may be a string, indicating the require property name. Or the v
348
351
<sectiontitle="maxItems">
349
352
<t>This indicates the maximum number of values in an array when an array is the instance value.</t>
350
353
</section>
354
+
<sectiontitle="uniqueItems">
355
+
<t>This indicates that all the items in an array must be unique (no two identical values) within that array when an array is the instance value.</t>
356
+
</section>
351
357
<sectiontitle="pattern">
352
358
<t>When the instance value is a string, this provides a regular expression that a instance string value should match in order to be valid. Regular expressions should follow the regular expression specification from ECMA 262/Perl 5</t></section>
353
359
<sectiontitle="maxLength">
@@ -395,8 +401,8 @@ If the instance property value is a string, this indicates that the string shoul
395
401
<sectiontitle="default">
396
402
<t>This indicates the default for the instance property.</t>
397
403
</section>
398
-
<sectiontitle="maxDecimal">
399
-
<t>This indicates the maximum number of decimal places in a floating point number. By default there is no maximum.</t>
404
+
<sectiontitle="divisibleBy">
405
+
<t>This indicates that the instance property value must be divisible by the given schema value when the instance property value is a number.</t>
400
406
</section>
401
407
<sectiontitle="disallow">
402
408
<t>This attribute may take the same values as the "type" attribute, however if the instance matches the type or if this value is an array and the instance matches any type or schema in the array, than this instance is not valid.</t>
@@ -423,16 +429,23 @@ relations of the instances.
423
429
</t>
424
430
<sectiontitle="Link Description Object">
425
431
<t>
426
-
A link description object is used to describe the link relations
427
-
of instances of a schema.
432
+
A link description object is used to describe the link relations. In
433
+
the context of a schema, it defines the link relations of the
434
+
instances of the schema, and can be parameterized by the instance
435
+
values. The link description format can be used on its own in
436
+
regular (non-schema documents), and use of this format can
437
+
be declared by referencing the normative link description
438
+
schema as the the schema for the data structure that uses the
439
+
links. The URI of the normative link description schema is: http://json-schema.org/links.
428
440
</t>
429
441
<sectiontitle="href">
430
442
<t>
431
443
The value of the "href" link description property
432
444
indicates the target URI of the related resource. The value
433
445
of the instance property should be resolved as a URI-Reference per [RFC3986]
434
446
and may be a relative URI. The base URI to be used for relative resolution
435
-
should be the URI used to retrieve the instance object (not the schema).
447
+
should be the URI used to retrieve the instance object (not the schema)
448
+
when used in the context of a schema.
436
449
Also, the URI may be parametrized by the property values of the instance
437
450
object.
438
451
</t>
@@ -541,6 +554,10 @@ This would indicate that for the first item in the collection, it's own
541
554
relation should be resolved to the resource at "/Resource/parent".
542
555
The "children" collection would be located at "/Resource/?upId=thing".
543
556
</t>
557
+
<sectiontitle="targetSchema">
558
+
<t>This property value can be a schema that defines the expected
559
+
structure of the JSON representation of the target of the link.</t>
560
+
</section>
544
561
</section>
545
562
<sectiontitle="Submission Link Properties">
546
563
<t>
@@ -617,7 +634,7 @@ for the form action.
617
634
resolving fragment identifiers in URIs within the instance
618
635
representations. This applies to the instance object URIs and all
619
636
children of the instance object's URIs. The default fragment resolution
620
-
protocol is "dot-delimited", which is defined below. Other fragment
637
+
protocol is "slash-delimited", which is defined below. Other fragment
621
638
resolution protocols may be used, but are not defined in this
622
639
document.
623
640
@@ -685,6 +702,11 @@ fragment identifier resolution
685
702
</figure>
686
703
</t>
687
704
</section>
705
+
<sectiontitle="slash-delimited fragment resolution">
706
+
<t>The slash-delimited fragment resolution protocol is exactly the same as
707
+
dot-delimited fragment resolution protocol except that the "/" character
708
+
(\x2F) is used as the delimiter between property names (instead of ".").</t>
0 commit comments