Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 8a99ede

Browse files
author
Phil Sturgeon
authored
Merge pull request #289 from toddobryan/patch-1
Notes change in integer behavior between 4 and 6
2 parents e204f3a + 06ed5c2 commit 8a99ede

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

draft-06/json-schema-release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ keyword | change | consequence
2525
`"$id"` | replaces `"id"` | behavior is identical, `$` prefix matches the other two core keywords
2626
`"$ref"` | only allowed where a schema is expected | it is now possible to describe instance properties named `"$ref"`
2727
`"exclusiveMinimum"` and `"exclusiveMaximum"` | changed from a boolean to a number to be consistent with the principle of keyword independence | wherever one of these would be true before, change the value to the corresponding `"minimum"` or `"maximum"` value and remove the `"minimum"`/`"maximum"` keyword
28+
`"type"` | definition of `"integer"` | in draft-04, `"integer"` is listed as a primitive type and defined as "a JSON number without a fraction or exponent part"; in draft-06, `"integer"` is not considered a primitive type and is only defined in the section for keyword `"type"` as "any number with a zero fractional part"; `1.0` is thus not a valid `"integer"` type in draft-04 and earlier, but is a valid `"integer"` type in draft-06 and later; note that both drafts say that integers SHOULD be encoded in JSON without fractional parts
2829

2930
#### Additions and backwards-compatible changes
3031

0 commit comments

Comments
 (0)