Skip to content

Commit c7afb38

Browse files
committed
fix(keyword): enum definition was relaxed in draft6
This PR _only_ updates drafts `2019-09` and `2020-12` because the metaschemas weren't updated until draft2019-09. Since draft5/6: 5.20. enum The value of this keyword MUST be an array. This array SHOULD have at least one element. Elements in the array SHOULD be unique. Prior to draft5, the text reads: 5.5.1.1. Valid values The value of this keyword MUST be an array. This array MUST have at least one element. Elements in the array MUST be unique.
1 parent 4badb41 commit c7afb38

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

content/2019-09/validation/enum.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
keyword: "enum"
33
signature: "Array<Any>"
4-
value: This keyword must be set to a *non-empty* array of unique JSON values
4+
value: This keyword must be set to an array of unique JSON values
55
summary: "Validation succeeds if the instance is equal to one of the elements in this keyword's array value."
66
kind: [ "assertion" ]
77
instance: [ "any" ]

content/2020-12/validation/enum.markdown

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
keyword: "enum"
33
signature: "Array<Any>"
4-
value: This keyword must be set to a *non-empty* array of unique JSON values
4+
value: This keyword must be set to an array of unique JSON values
55
summary: "Validation succeeds if the instance is equal to one of the elements in this keyword's array value."
66
kind: [ "assertion" ]
77
instance: [ "any" ]
@@ -11,6 +11,8 @@ tests:
1111
- draft2020-12/enum.json
1212
index: -99998
1313
introduced_in: draft1
14+
changed_in:
15+
- 2019-09
1416
related:
1517
- vocabulary: validation
1618
keyword: const

0 commit comments

Comments
 (0)