From 1e74554e20b1bf234da4a3caa8a0d090b43166d4 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 9 Oct 2022 14:58:07 +0200 Subject: util.jsonschema: Sort test cases to skip Piped trough `sort -g` --- spec/util_jsonschema_spec.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'spec') diff --git a/spec/util_jsonschema_spec.lua b/spec/util_jsonschema_spec.lua index 74da2c07..28a1a2fc 100644 --- a/spec/util_jsonschema_spec.lua +++ b/spec/util_jsonschema_spec.lua @@ -8,10 +8,6 @@ if lfs.attributes(test_suite_dir, "mode") ~= "directory" then return end -- Tests to skip and short reason why (NYI = not yet implemented) local skip = { - ["ref.json:0:3"] = "NYI additionalProperties"; - ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?", - ["ref.json:6:1"] = "NYI", - ["required.json:0:2"] = "distinguishing objects from arrays", ["additionalProperties.json:0:2"] = "distinguishing objects from arrays", ["additionalProperties.json:0:5"] = "NYI", ["additionalProperties.json:1:0"] = "NYI", @@ -40,16 +36,20 @@ local skip = { ["patternProperties.json"] = "NYI", ["properties.json:1:2"] = "NYI", ["properties.json:1:3"] = "NYI", + ["ref.json:0:3"] = "NYI additionalProperties", + ["ref.json:11"] = "NYI", + ["ref.json:12:1"] = "FIXME", + ["ref.json:13"] = "NYI", ["ref.json:14"] = "NYI", ["ref.json:15"] = "NYI", ["ref.json:16"] = "NYI", ["ref.json:17"] = "NYI", ["ref.json:18"] = "NYI", - ["ref.json:13"] = "NYI", ["ref.json:19"] = "NYI", - ["ref.json:11"] = "NYI", - ["ref.json:12:1"] = "FIXME", + ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?", + ["ref.json:6:1"] = "NYI", ["refRemote.json"] = "DEFINITELY NYI", + ["required.json:0:2"] = "distinguishing objects from arrays", ["type.json:3:4"] = "distinguishing objects from arrays", ["type.json:3:6"] = "null is weird", ["type.json:4:3"] = "distinguishing objects from arrays", -- cgit v1.2.3 From 8f850047e33349eb569648c002ee08b9699435b5 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 9 Oct 2022 15:24:26 +0200 Subject: util.jsonschema: Ignore some further test cases for URI references Full-URI references are not implemented --- spec/util_jsonschema_spec.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') diff --git a/spec/util_jsonschema_spec.lua b/spec/util_jsonschema_spec.lua index 28a1a2fc..3c2e5f40 100644 --- a/spec/util_jsonschema_spec.lua +++ b/spec/util_jsonschema_spec.lua @@ -46,8 +46,13 @@ local skip = { ["ref.json:17"] = "NYI", ["ref.json:18"] = "NYI", ["ref.json:19"] = "NYI", + ["ref.json:26"] = "NYI", + ["ref.json:27"] = "NYI", + ["ref.json:28"] = "NYI", ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?", ["ref.json:6:1"] = "NYI", + ["ref.json:20"] = "NYI", + ["ref.json:25"] = "NYI", ["refRemote.json"] = "DEFINITELY NYI", ["required.json:0:2"] = "distinguishing objects from arrays", ["type.json:3:4"] = "distinguishing objects from arrays", -- cgit v1.2.3 From c617f27a547610da1ac328a161f177f482b158a6 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 9 Oct 2022 15:24:30 +0200 Subject: util.jsonschema: Ignore test case for JavaScript specific detail Also touching on how arrays are indistinguishable from tables in Lua --- spec/util_jsonschema_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'spec') diff --git a/spec/util_jsonschema_spec.lua b/spec/util_jsonschema_spec.lua index 3c2e5f40..968acaf1 100644 --- a/spec/util_jsonschema_spec.lua +++ b/spec/util_jsonschema_spec.lua @@ -50,6 +50,7 @@ local skip = { ["ref.json:27"] = "NYI", ["ref.json:28"] = "NYI", ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?", + ["required.json:4"] = "JavaScript specific and distinguishing objects from arrays", ["ref.json:6:1"] = "NYI", ["ref.json:20"] = "NYI", ["ref.json:25"] = "NYI", -- cgit v1.2.3