Comparison

spec/util_jsonschema_spec.lua @ 13867:eabd38507c1d 13.0

util.jsonschema: Fix handling of `false` as schema Schemas can be either a boolean or a table (object) but since it only checked for truthiness, the case of `false` would be handled incorrectly. There seems to be no tests that cover `then` and `else` being `false`, only a couple that check the `if` keyword.
author Kim Alvefur <zash@zash.se>
date Sun, 30 Mar 2025 17:27:23 +0200
parent 13385:72d7830505f0
comparison
equal deleted inserted replaced
13854:0b01f40df0f9 13867:eabd38507c1d
29 ["multipleOf.json:4"] = "multiples of IEEE 754 fractions", 29 ["multipleOf.json:4"] = "multiples of IEEE 754 fractions",
30 ["pattern.json"] = "NYI", 30 ["pattern.json"] = "NYI",
31 ["patternProperties.json"] = "NYI", 31 ["patternProperties.json"] = "NYI",
32 ["properties.json:1:2"] = "NYI", 32 ["properties.json:1:2"] = "NYI",
33 ["properties.json:1:3"] = "NYI", 33 ["properties.json:1:3"] = "NYI",
34 ["propertyNames.json:1:1"] = "NYI",
34 ["ref.json:0:3"] = "util.jsonpointer recursive issue?", 35 ["ref.json:0:3"] = "util.jsonpointer recursive issue?",
36 ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?",
37 ["ref.json:6:1"] = "NYI",
35 ["ref.json:11"] = "NYI", 38 ["ref.json:11"] = "NYI",
36 ["ref.json:12:1"] = "FIXME", 39 ["ref.json:12:1"] = "FIXME",
37 ["ref.json:13"] = "NYI", 40 ["ref.json:13"] = "NYI",
38 ["ref.json:14"] = "NYI", 41 ["ref.json:14"] = "NYI",
39 ["ref.json:15"] = "NYI", 42 ["ref.json:15"] = "NYI",
40 ["ref.json:16"] = "NYI", 43 ["ref.json:16"] = "NYI",
41 ["ref.json:17"] = "NYI", 44 ["ref.json:17"] = "NYI",
42 ["ref.json:18"] = "NYI", 45 ["ref.json:18"] = "NYI",
43 ["ref.json:19"] = "NYI", 46 ["ref.json:19"] = "NYI",
47 ["ref.json:20"] = "NYI",
48 ["ref.json:25"] = "NYI",
44 ["ref.json:26"] = "NYI", 49 ["ref.json:26"] = "NYI",
45 ["ref.json:27"] = "NYI", 50 ["ref.json:27"] = "NYI",
46 ["ref.json:28"] = "NYI", 51 ["ref.json:28"] = "NYI",
47 ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?",
48 ["required.json:4"] = "JavaScript specific and distinguishing objects from arrays",
49 ["ref.json:6:1"] = "NYI",
50 ["ref.json:20"] = "NYI",
51 ["ref.json:25"] = "NYI",
52 ["ref.json:29"] = "NYI", 52 ["ref.json:29"] = "NYI",
53 ["ref.json:30"] = "NYI", 53 ["ref.json:30"] = "NYI",
54 ["ref.json:31"] = "NYI", 54 ["ref.json:31"] = "NYI",
55 ["ref.json:32"] = "NYI", 55 ["ref.json:32"] = "NYI",
56 ["not.json:6"] = "NYI", 56 ["not.json:6"] = "NYI",
57 ["required.json:0:2"] = "distinguishing objects from arrays",
58 ["required.json:4"] = "JavaScript specific and distinguishing objects from arrays",
59 ["not.json:8:0"] = "NYI",
57 ["refRemote.json"] = "DEFINITELY NYI", 60 ["refRemote.json"] = "DEFINITELY NYI",
58 ["required.json:0:2"] = "distinguishing objects from arrays",
59 ["type.json:0:1"] = "1.0 is not an integer!", 61 ["type.json:0:1"] = "1.0 is not an integer!",
60 ["type.json:3:4"] = "distinguishing objects from arrays", 62 ["type.json:3:4"] = "distinguishing objects from arrays",
61 ["type.json:3:6"] = "null is weird", 63 ["type.json:3:6"] = "null is weird",
62 ["type.json:4:3"] = "distinguishing objects from arrays", 64 ["type.json:4:3"] = "distinguishing objects from arrays",
63 ["type.json:4:6"] = "null is weird", 65 ["type.json:4:6"] = "null is weird",
64 ["type.json:9:4"] = "null is weird", 66 ["type.json:9:4"] = "null is weird",
65 ["type.json:9:6"] = "null is weird",
66 ["unevaluatedItems.json"] = "NYI", 67 ["unevaluatedItems.json"] = "NYI",
67 ["unevaluatedProperties.json"] = "NYI", 68 ["unevaluatedProperties.json"] = "NYI",
68 ["uniqueItems.json:0:10"] = "deepcompare", 69 ["uniqueItems.json:0:10"] = "deepcompare",
69 ["uniqueItems.json:0:12"] = "deepcompare", 70 ["uniqueItems.json:0:12"] = "deepcompare",
70 ["uniqueItems.json:0:14"] = "deepcompare", 71 ["uniqueItems.json:0:14"] = "deepcompare",