Commit 21961b7
authored
Allow const to be Any type (#248)
Trying to create a schema that uses `const` with a non-string value crashes
Per the specification:
> The value of this keyword MAY be of any type, including null.
https://json-schema.org/draft/2020-12/json-schema-validation#section-6.1.31 parent 3e9b220 commit 21961b7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
0 commit comments