Software /
code /
prosody
Comparison
spec/util_jsonschema_spec.lua @ 12943:297b4cfcc3d9
util.jsonschema: Ignore some new tests in test suite
These seem to be using absolute URI references, Not Yet Implemented
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 Mar 2023 12:01:17 +0100 |
parent | 12758:7929c0ffbe14 |
child | 12944:05ec70a9f755 |
comparison
equal
deleted
inserted
replaced
12942:54756e3a54b9 | 12943:297b4cfcc3d9 |
---|---|
1 local js = require "util.jsonschema"; | 1 local js = require "util.jsonschema"; |
2 local json = require "util.json"; | 2 local json = require "util.json"; |
3 local lfs = require "lfs"; | 3 local lfs = require "lfs"; |
4 | 4 |
5 -- https://github.com/json-schema-org/JSON-Schema-Test-Suite.git 2.0.0-550-g88d6948 | 5 -- https://github.com/json-schema-org/JSON-Schema-Test-Suite.git 2.0.0-698-gf57d3e0 |
6 local test_suite_dir = "spec/JSON-Schema-Test-Suite/tests/draft2020-12" | 6 local test_suite_dir = "spec/JSON-Schema-Test-Suite/tests/draft2020-12" |
7 if lfs.attributes(test_suite_dir, "mode") ~= "directory" then return end | 7 if lfs.attributes(test_suite_dir, "mode") ~= "directory" then return end |
8 | 8 |
9 -- Tests to skip and short reason why (NYI = not yet implemented) | 9 -- Tests to skip and short reason why (NYI = not yet implemented) |
10 local skip = { | 10 local skip = { |
52 ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?", | 52 ["ref.json:3:2"] = "FIXME investigate, util.jsonpath issue?", |
53 ["required.json:4"] = "JavaScript specific and distinguishing objects from arrays", | 53 ["required.json:4"] = "JavaScript specific and distinguishing objects from arrays", |
54 ["ref.json:6:1"] = "NYI", | 54 ["ref.json:6:1"] = "NYI", |
55 ["ref.json:20"] = "NYI", | 55 ["ref.json:20"] = "NYI", |
56 ["ref.json:25"] = "NYI", | 56 ["ref.json:25"] = "NYI", |
57 ["ref.json:29"] = "NYI", | |
58 ["ref.json:30"] = "NYI", | |
59 ["ref.json:31"] = "NYI", | |
57 ["refRemote.json"] = "DEFINITELY NYI", | 60 ["refRemote.json"] = "DEFINITELY NYI", |
58 ["required.json:0:2"] = "distinguishing objects from arrays", | 61 ["required.json:0:2"] = "distinguishing objects from arrays", |
59 ["type.json:3:4"] = "distinguishing objects from arrays", | 62 ["type.json:3:4"] = "distinguishing objects from arrays", |
60 ["type.json:3:6"] = "null is weird", | 63 ["type.json:3:6"] = "null is weird", |
61 ["type.json:4:3"] = "distinguishing objects from arrays", | 64 ["type.json:4:3"] = "distinguishing objects from arrays", |