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
Copy file name to clipboardExpand all lines: draft-zyp-json-schema-03.xml
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -308,8 +308,9 @@ This attribute can take one of two forms:
308
308
<thangText="null">Value MUST be null. Note this is mainly for purpose of being able use union types to define nullability. If this type is not
309
309
included in a union, null values are not allowed (the primitives listed above do not allow nulls on their own).</t>
310
310
<thangText="any">Value MAY be of any type including null.
311
-
If the property is not defined or is not in this list, than any type of value is acceptable. Other type values MAY be used for custom purposes, but minimal validators of the specification implementation can allow any instance value on unknown type values.</t>
311
+
</t>
312
312
</list>
313
+
If the property is not defined or is not in this list, then any type of value is acceptable. Other type values MAY be used for custom purposes, but minimal validators of the specification implementation can allow any instance value on unknown type values.
313
314
</t>
314
315
<thangText="Union Types">An array of two or more simple type definitions. Each item in the array MUST be a simple type definition, a schema, or a URI for a schema. The instance value is valid if it is of the same type as one of the simple type definitions in the array, or if it is valid by one of the schemas (or a schema referenced by a URI) in the array.
315
316
</t>
@@ -413,7 +414,7 @@ The dependency value can take one of two forms:
413
414
<t>This attribute defines the maximum number of decimal points a number instance can have.</t>
414
415
</section>
415
416
<sectiontitle="disallow">
416
-
<t>This attribute takes 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 or a URI referencing a schema in the array, than this instance is not valid.</t>
417
+
<t>This attribute takes 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 or a URI referencing a schema in the array, then this instance is not valid.</t>
417
418
</section>
418
419
<sectiontitle="extends">
419
420
<t>The value of this property MUST be another schema or a URI referencing a schema which will provide a base schema which the current schema will inherit from. The inheritance rules are such that any instance that is valid according to the current schema MUST be valid according to the referenced schema. This MAY also be an array, in which case, the instance MUST be valid for all the schemas in the array. A schema that extends another schema MAY define additional properties, constrain existing properties, or add other constraints. The schema MUST NOT define a constraint that conflicts with an extended schema such that no instance may satisfy both schemas. An example of using "extends":
@@ -504,7 +505,7 @@ URI would be:
504
505
http://somesite.com/45
505
506
]]></artwork>
506
507
</figure>
507
-
If matching braces are found with the string "@" (no quotes) between the braces, than the
508
+
If matching braces are found with the string "@" (no quotes) between the braces, then the
508
509
actual instance value SHOULD be used to replace the braces, rather than a property value.
509
510
This should only be used in situations where the instance is a scalar (string,
510
511
boolean, or number), and not for objects or arrays.
@@ -693,7 +694,7 @@ the fragment identifier, as a path reference in the target JSON
693
694
structure. The final target value of the fragment can be determined by
694
695
starting with the root of the JSON structure from the representation of
695
696
the resource identified by the pre-fragment URI. If the target is a JSON
696
-
object, than the new target is the value of the property with the name
697
+
object, then the new target is the value of the property with the name
697
698
identified by the next property reference token in the fragment. If the
698
699
target is a JSON array, than the target is determined by finding the
699
700
item in array the array with the index defined by the next property
0 commit comments