Software /
code /
prosody
Comparison
spec/util_jsonschema_spec.lua @ 12944:05ec70a9f755
util.jsonschema: Disable some further new failing tests
Absolute references, weird fractions, unevaluatedProperties???
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 Mar 2023 12:12:49 +0100 |
parent | 12943:297b4cfcc3d9 |
child | 12988:8592770be63a |
comparison
equal
deleted
inserted
replaced
12943:297b4cfcc3d9 | 12944:05ec70a9f755 |
---|---|
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-698-gf57d3e0 | 5 -- https://github.com/json-schema-org/JSON-Schema-Test-Suite.git 2.0.0-724-g19947ea |
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 = { |
30 ["minContains.json"] = "NYI", | 30 ["minContains.json"] = "NYI", |
31 ["minLength.json:0:4"] = "UTF-16", | 31 ["minLength.json:0:4"] = "UTF-16", |
32 ["minProperties.json"] = "NYI", | 32 ["minProperties.json"] = "NYI", |
33 ["multipleOf.json:1"] = "multiples of IEEE 754 fractions", | 33 ["multipleOf.json:1"] = "multiples of IEEE 754 fractions", |
34 ["multipleOf.json:2"] = "multiples of IEEE 754 fractions", | 34 ["multipleOf.json:2"] = "multiples of IEEE 754 fractions", |
35 ["multipleOf.json:4"] = "multiples of IEEE 754 fractions", | |
35 ["pattern.json"] = "NYI", | 36 ["pattern.json"] = "NYI", |
36 ["patternProperties.json"] = "NYI", | 37 ["patternProperties.json"] = "NYI", |
37 ["properties.json:1:2"] = "NYI", | 38 ["properties.json:1:2"] = "NYI", |
38 ["properties.json:1:3"] = "NYI", | 39 ["properties.json:1:3"] = "NYI", |
39 ["ref.json:0:3"] = "NYI additionalProperties", | 40 ["ref.json:0:3"] = "NYI additionalProperties", |
55 ["ref.json:20"] = "NYI", | 56 ["ref.json:20"] = "NYI", |
56 ["ref.json:25"] = "NYI", | 57 ["ref.json:25"] = "NYI", |
57 ["ref.json:29"] = "NYI", | 58 ["ref.json:29"] = "NYI", |
58 ["ref.json:30"] = "NYI", | 59 ["ref.json:30"] = "NYI", |
59 ["ref.json:31"] = "NYI", | 60 ["ref.json:31"] = "NYI", |
61 ["ref.json:32"] = "NYI", | |
62 ["not.json:6"] = "NYI", | |
60 ["refRemote.json"] = "DEFINITELY NYI", | 63 ["refRemote.json"] = "DEFINITELY NYI", |
61 ["required.json:0:2"] = "distinguishing objects from arrays", | 64 ["required.json:0:2"] = "distinguishing objects from arrays", |
62 ["type.json:3:4"] = "distinguishing objects from arrays", | 65 ["type.json:3:4"] = "distinguishing objects from arrays", |
63 ["type.json:3:6"] = "null is weird", | 66 ["type.json:3:6"] = "null is weird", |
64 ["type.json:4:3"] = "distinguishing objects from arrays", | 67 ["type.json:4:3"] = "distinguishing objects from arrays", |