diff --git a/encoding/jsonschema/constraints.go b/encoding/jsonschema/constraints.go index 77df52eb3..2e7ebd44f 100644 --- a/encoding/jsonschema/constraints.go +++ b/encoding/jsonschema/constraints.go @@ -97,7 +97,7 @@ var constraints = []*constraint{ p2("exclusiveMaximum", constraintExclusiveMaximum, allVersions|openAPI), p2("exclusiveMinimum", constraintExclusiveMinimum, allVersions|openAPI), p1("externalDocs", constraintTODO, openAPI), - p1("format", constraintTODO, allVersions|openAPI), + p1("format", constraintFormat, allVersions|openAPI), p1("id", constraintID, vto(VersionDraft4)), p1("if", constraintIf, vfrom(VersionDraft7)), p2("items", constraintItems, allVersions|openAPI), diff --git a/encoding/jsonschema/constraints_string.go b/encoding/jsonschema/constraints_string.go index 8cc00f475..11f99ba24 100644 --- a/encoding/jsonschema/constraints_string.go +++ b/encoding/jsonschema/constraints_string.go @@ -16,6 +16,7 @@ package jsonschema import ( "regexp" + "sync" "cuelang.org/go/cue" "cuelang.org/go/cue/ast" @@ -61,3 +62,69 @@ func constraintPattern(key string, n cue.Value, s *state) { } s.add(n, stringType, &ast.UnaryExpr{Op: token.MAT, X: s.string(n)}) } + +type formatFuncInfo struct { + versions versionSet + f func(s *state) +} + +var formatFuncs = sync.OnceValue(func() map[string]formatFuncInfo { + return map[string]formatFuncInfo{ + "binary": {openAPI, formatTODO}, + "byte": {openAPI, formatTODO}, + "data": {openAPI, formatTODO}, + "date": {vfrom(VersionDraft7), formatTODO}, + "date-time ": {allVersions | openAPI, formatTODO}, + "double": {openAPI, formatTODO}, + "duration": {vfrom(VersionDraft2019_09), formatTODO}, + "email": {allVersions | openAPI, formatTODO}, + "float": {openAPI, formatTODO}, + "hostname": {allVersions | openAPI, formatTODO}, + "idn-email": {vfrom(VersionDraft7), formatTODO}, + "idn-hostname": {vfrom(VersionDraft7), formatTODO}, + "int32": {openAPI, formatTODO}, + "int64": {openAPI, formatTODO}, + "ipv4": {allVersions | openAPI, formatTODO}, + "ipv6": {allVersions | openAPI, formatTODO}, + "iri": {vfrom(VersionDraft7), formatTODO}, + "iri-reference": {vfrom(VersionDraft7), formatTODO}, + "json-pointer": {vfrom(VersionDraft6), formatTODO}, + "password": {openAPI, formatTODO}, + "regex": {vfrom(VersionDraft7), formatTODO}, + "relative-json-pointer": {vfrom(VersionDraft7), formatTODO}, + "time": {vfrom(VersionDraft7), formatTODO}, + "uri": {allVersions | openAPI, formatTODO}, + "uri-reference": {vfrom(VersionDraft6), formatTODO}, + "uri-template": {vfrom(VersionDraft6), formatTODO}, + "uuid": {vfrom(VersionDraft2019_09), formatTODO}, + } +}) + +// 2019 changed "hostname" "idn-hostname" + +func constraintFormat(key string, n cue.Value, s *state) { + formatStr, ok := s.strValue(n) + if !ok { + return + } + finfo, ok := formatFuncs()[formatStr] + if !ok { + // TODO StrictKeywords isn't exactly right here, but in general + // we want unknown formats to be ignored even when StrictFeatures + // is enabled, and StrictKeywords is closest to what we want. + // Perhaps we should have a "lint" mode? + if s.cfg.StrictKeywords { + s.errf(n, "unknown format %q", formatStr) + } + return + } + if !finfo.versions.contains(s.schemaVersion) { + if s.cfg.StrictKeywords { + s.errf(n, "format %q is not recognized in schema version %v", formatStr, s.schemaVersion) + } + return + } + finfo.f(s) +} + +func formatTODO(s *state) {} diff --git a/encoding/jsonschema/external_teststats.txt b/encoding/jsonschema/external_teststats.txt index b99343752..aa4f9afd4 100644 --- a/encoding/jsonschema/external_teststats.txt +++ b/encoding/jsonschema/external_teststats.txt @@ -1,10 +1,10 @@ # Generated by teststats. DO NOT EDIT v2: - schema extract (pass / total): 1077 / 1637 = 65.8% - tests (pass / total): 3467 / 7175 = 48.3% - tests on extracted schemas (pass / total): 3467 / 3884 = 89.3% + schema extract (pass / total): 1223 / 1637 = 74.7% + tests (pass / total): 4936 / 7175 = 68.8% + tests on extracted schemas (pass / total): 4936 / 6059 = 81.5% v3: - schema extract (pass / total): 1065 / 1637 = 65.1% - tests (pass / total): 3418 / 7175 = 47.6% - tests on extracted schemas (pass / total): 3418 / 3840 = 89.0% + schema extract (pass / total): 1211 / 1637 = 74.0% + tests (pass / total): 4887 / 7175 = 68.1% + tests on extracted schemas (pass / total): 4887 / 6015 = 81.2% diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/format.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/format.json index 8ad565347..eab8dc1b6 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/format.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/format.json @@ -5,64 +5,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -72,64 +44,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "idn-email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -139,64 +83,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "regex" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -206,64 +122,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -273,64 +161,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -340,64 +200,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "idn-hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -407,64 +239,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -474,64 +278,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "date" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -541,64 +317,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -608,64 +356,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -675,64 +395,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -742,64 +434,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "relative-json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -809,64 +473,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "iri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -876,64 +512,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "iri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -943,64 +551,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1010,64 +590,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1077,64 +629,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1144,64 +668,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uuid" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1211,64 +707,36 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "duration" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date-time.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date-time.json index 851105496..fbf889e69 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date-time.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date-time.json @@ -5,126 +5,74 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string", "data": "1963-06-19T08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string without second fraction", "data": "1963-06-19T08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with plus offset", "data": "1937-01-01T12:00:27.87+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with minus offset", "data": "1990-12-31T15:59:50.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, UTC", "data": "1998-12-31T23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, with minus offset", "data": "1998-12-31T15:59:60.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid date-time past leap second, UTC", "data": "1998-12-31T23:59:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +80,8 @@ "data": "1998-12-31T23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +89,8 @@ "data": "1998-12-31T22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +98,8 @@ "data": "1990-02-31T15:59:59.123-08:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,8 +107,8 @@ "data": "1990-12-31T15:59:59-24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -168,8 +116,8 @@ "data": "1963-06-19T08:30:06.28123+01:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -177,26 +125,22 @@ "data": "06/19/1963 08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "case-insensitive T and Z", "data": "1963-06-19t08:30:06.283185z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "only RFC3339 not all of ISO 8601 are valid", "data": "2013-350T01:01:01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -204,8 +148,8 @@ "data": "1963-6-19T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -213,8 +157,8 @@ "data": "1963-06-1T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,8 +166,8 @@ "data": "1963-06-1৪T00:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -231,8 +175,8 @@ "data": "1963-06-11T0৪:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date.json index 52e80225d..ea733cd41 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/date.json @@ -5,306 +5,222 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "date" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date string", "data": "1963-06-19", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date string with 31 days in January", "data": "2020-01-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in January", "data": "2020-01-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 28 days in February (normal)", "data": "2021-02-28", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 29 days in February (normal)", "data": "2021-02-29", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 29 days in February (leap)", "data": "2020-02-29", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 30 days in February (leap)", "data": "2020-02-30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in March", "data": "2020-03-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in March", "data": "2020-03-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in April", "data": "2020-04-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in April", "data": "2020-04-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in May", "data": "2020-05-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in May", "data": "2020-05-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in June", "data": "2020-06-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in June", "data": "2020-06-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in July", "data": "2020-07-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in July", "data": "2020-07-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in August", "data": "2020-08-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in August", "data": "2020-08-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in September", "data": "2020-09-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in September", "data": "2020-09-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in October", "data": "2020-10-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in October", "data": "2020-10-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in November", "data": "2020-11-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in November", "data": "2020-11-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in December", "data": "2020-12-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in December", "data": "2020-12-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +228,8 @@ "data": "2020-13-01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,8 +237,8 @@ "data": "06/19/1963", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -330,8 +246,8 @@ "data": "2013-350", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -339,8 +255,8 @@ "data": "1998-1-20", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +264,8 @@ "data": "1998-01-1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -357,8 +273,8 @@ "data": "1998-13-01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,8 +282,8 @@ "data": "1998-04-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -375,26 +291,22 @@ "data": "2021-02-29", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "2020 is a leap year", "data": "2020-02-29", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '৪' (a Bengali 4)", "data": "1963-06-1৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -402,8 +314,8 @@ "data": "20230328", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -411,8 +323,8 @@ "data": "2023-W01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -420,8 +332,8 @@ "data": "2023-W13-2", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -429,8 +341,8 @@ "data": "2022W527", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/duration.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/duration.json index 112788750..45467a2ab 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/duration.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/duration.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "duration" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid duration string", "data": "P4DT12H30M5S", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid duration string", "data": "PT1D", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "P", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +64,8 @@ "data": "P1YT", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +73,8 @@ "data": "PT", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +82,8 @@ "data": "P2D1Y", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +91,8 @@ "data": "P1D2H", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,89 +100,57 @@ "data": "P2S", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "four years duration", "data": "P4Y", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "zero time, in seconds", "data": "PT0S", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "zero time, in days", "data": "P0D", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one month duration", "data": "P1M", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one minute duration", "data": "PT1M", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one and a half days, in hours", "data": "PT36H", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one and a half days, in days and hours", "data": "P1DT12H", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two weeks", "data": "P2W", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "weeks cannot be combined with other units", "data": "P1Y2W", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,8 +158,8 @@ "data": "P২Y", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -231,8 +167,8 @@ "data": "P1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/email.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/email.json index 5d6a9b848..fa78cc39c 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/email.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/email.json @@ -5,117 +5,73 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "tilde in local part is valid", "data": "te~st@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde before local part is valid", "data": "~test@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde after local part is valid", "data": "test~@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "dot before local part is not valid", "data": ".test@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,26 +79,22 @@ "data": "test.@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "two separated dots inside local part are valid", "data": "te.s.t@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two subsequent dots inside local part are not valid", "data": "te..st@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/hostname.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/hostname.json index 2f3526826..2458390fa 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/hostname.json @@ -5,90 +5,54 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name", "data": "www.example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid punycoded IDN hostname", "data": "xn--4gbwdl.xn--wgbh1c", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a host name starting with an illegal character", "data": "-a-host-name-that-starts-with--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +60,8 @@ "data": "not_a_valid_host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +69,8 @@ "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +78,8 @@ "data": "-hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +87,8 @@ "data": "hostname-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +96,8 @@ "data": "_hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +105,8 @@ "data": "hostname_", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,72 +114,48 @@ "data": "host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "exceeds maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label starting with digit", "data": "1host", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-email.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-email.json index 12c3f49a2..7534254ca 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-email.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-email.json @@ -5,99 +5,63 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "idn-email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid idn e-mail (example@example.test in Hangul)", "data": "실례@실례.테스트", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid idn e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-hostname.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-hostname.json index d5c925826..10ae41f4b 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/idn-hostname.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "idn-hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name (example.test in Hangul)", "data": "실례.테스트", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "illegal first char U+302E Hangul single dot tone mark", "data": "〮실례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "실〮례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +64,8 @@ "data": "실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실례례테스트례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례테스트례례실례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -106,19 +74,15 @@ "data": "-\u003e $1.00 \u003c--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid Chinese Punycode", "comment": "https://tools.ietf.org/html/rfc5890#section-2.3.2.1 https://tools.ietf.org/html/rfc5891#section-4.4", "data": "xn--ihqwcrb4cv8a8dqg056pqjye", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid Punycode", @@ -126,8 +90,8 @@ "data": "xn--X", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -136,8 +100,8 @@ "data": "XN--aa---o47jg78q", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -146,8 +110,8 @@ "data": "-hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -156,8 +120,8 @@ "data": "hello-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -166,8 +130,8 @@ "data": "-hello-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -176,8 +140,8 @@ "data": "ःhello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -186,8 +150,8 @@ "data": "̀hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -196,29 +160,21 @@ "data": "҈hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Exceptions that are PVALID, left-to-right chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "ßς་〇", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Exceptions that are PVALID, right-to-left chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "۽۾", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Exceptions that are DISALLOWED, right-to-left chars", @@ -226,8 +182,8 @@ "data": "ـߺ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -236,8 +192,8 @@ "data": "〱〲〳〴〵〮〯〻", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -246,8 +202,8 @@ "data": "a·l", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -256,8 +212,8 @@ "data": "·l", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -266,8 +222,8 @@ "data": "l·a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -276,19 +232,15 @@ "data": "l·", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "MIDDLE DOT with surrounding 'l's", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "l·l", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Greek KERAIA not followed by Greek", @@ -296,8 +248,8 @@ "data": "α͵S", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -306,19 +258,15 @@ "data": "α͵", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Greek KERAIA followed by Greek", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4", "data": "α͵β", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Hebrew GERESH not preceded by Hebrew", @@ -326,8 +274,8 @@ "data": "A׳ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -336,19 +284,15 @@ "data": "׳ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Hebrew GERESH preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5", "data": "א׳ב", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Hebrew GERSHAYIM not preceded by Hebrew", @@ -356,8 +300,8 @@ "data": "A״ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,19 +310,15 @@ "data": "״ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Hebrew GERSHAYIM preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6", "data": "א״ב", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with no Hiragana, Katakana, or Han", @@ -386,8 +326,8 @@ "data": "def・abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -396,39 +336,27 @@ "data": "・", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "KATAKANA MIDDLE DOT with Hiragana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ぁ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with Katakana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ァ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with Han", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・丈", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Arabic-Indic digits mixed with Extended Arabic-Indic digits", @@ -436,29 +364,21 @@ "data": "ب٠۰", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Arabic-Indic digits not mixed with Extended Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.8", "data": "ب٠ب", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Extended Arabic-Indic digits not mixed with Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.9", "data": "۰0", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH JOINER not preceded by Virama", @@ -466,8 +386,8 @@ "data": "क‍ष", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -476,84 +396,52 @@ "data": "‍ष", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "ZERO WIDTH JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf", "data": "क्‍ष", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH NON-JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1", "data": "क्‌ष", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH NON-JOINER not preceded by Virama but matches regexp", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement", "data": "بي‌بي", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label starting with digit", "data": "1host", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv4.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv4.json index bf241b77c..1c741f306 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv4.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv4.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IP address", "data": "192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IP address with too many components", "data": "127.0.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "256.256.256.256", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +64,8 @@ "data": "127.0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +73,8 @@ "data": "0x7f000001", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +82,8 @@ "data": "2130706433", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -124,26 +92,22 @@ "data": "087.10.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "value without leading zero is valid", "data": "87.10.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '২' (a Bengali 2)", "data": "1২7.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -151,8 +115,8 @@ "data": "192.168.1.0/24", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv6.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv6.json index 8d50f7f61..322adfc0e 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv6.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/ipv6.json @@ -5,99 +5,63 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IPv6 address", "data": "::1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IPv6 address with out-of-range values", "data": "12345::", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "trailing 4 hex symbols is valid", "data": "::abef", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing 5 hex symbols is invalid", "data": "::abcef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +69,8 @@ "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,44 +78,32 @@ "data": "::laptop", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "no digits is valid", "data": "::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "leading colons is valid", "data": "::42:ff:1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing colons is valid", "data": "d6::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "missing leading octet is invalid", "data": ":2:3:4:5:6:7:8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,8 +111,8 @@ "data": "1:2:3:4:5:6:7:", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -168,53 +120,41 @@ "data": ":2:3:4::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single set of double colons in the middle is valid", "data": "1:d6::42", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two sets of double colons is invalid", "data": "1::d6::42", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with the ipv4 section as decimal octets", "data": "1::d6:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with double colons between the sections", "data": "1:2::192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with ipv4 section with octet out of range", "data": "1::2:192.168.256.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,44 +162,36 @@ "data": "1::2:192.168.ff.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with leading double colons (ipv4-mapped ipv6 address)", "data": "::ffff:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "triple colons is invalid", "data": "1:2:3:4:5:::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "8 octets", "data": "1:2:3:4:5:6:7:8", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "insufficient octets without double colons", "data": "1:2:3:4:5:6:7", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -267,8 +199,8 @@ "data": "1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -276,8 +208,8 @@ "data": "127.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -285,8 +217,8 @@ "data": "1:2:3:4:1.2.3", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -294,8 +226,8 @@ "data": " ::1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -303,8 +235,8 @@ "data": "::1 ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +244,8 @@ "data": "fe80::/64", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,26 +253,22 @@ "data": "fe80::a%eth1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a long valid ipv6", "data": "1000:1000:1000:1000:1000:1000:255.255.255.255", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a long invalid ipv6, below length limit, first", "data": "100:100:100:100:100:100:255.255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +276,8 @@ "data": "100:100:100:100:100:100:100:255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -357,8 +285,8 @@ "data": "1:2:3:4:5:6:7:৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,8 +294,8 @@ "data": "1:2::192.16৪.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri-reference.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri-reference.json index 67132e6f3..04d09c056 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri-reference.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri-reference.json @@ -5,126 +5,78 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "iri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI", "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid protocol-relative IRI Reference", "data": "//ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative IRI Reference", "data": "/âππ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI Reference", "data": "\\\\WINDOWS\\filëßåré", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid IRI Reference", "data": "âππ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI fragment", "data": "#ƒrägmênt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI fragment", "data": "#ƒräg\\mênt", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri.json index 906102ede..7c97c3e32 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/iri.json @@ -5,117 +5,69 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "iri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with anchor tag", "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with anchor tag and parentheses", "data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with URL-encoded stuff", "data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI based on IPv6", "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI based on IPv6", "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +75,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +84,8 @@ "data": "\\\\WINDOWS\\filëßåré", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +93,8 @@ "data": "âππ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/json-pointer.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/json-pointer.json index 725ea56c7..584a78ea8 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/json-pointer.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/json-pointer.json @@ -5,261 +5,153 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid JSON-pointer", "data": "/foo/bar~0/baz~1/%a", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (~ not escaped)", "data": "/foo/bar~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid JSON-pointer with empty segment", "data": "/foo//bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer with the last empty segment", "data": "/foo/bar/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #1", "data": "", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #2", "data": "/foo", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #3", "data": "/foo/0", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #4", "data": "/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #5", "data": "/a~1b", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #6", "data": "/c%d", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #7", "data": "/e^f", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #8", "data": "/g|h", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #9", "data": "/i\\j", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #10", "data": "/k\"l", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #11", "data": "/ ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #12", "data": "/m~0n", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer used adding to the last array position", "data": "/foo/-", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (- used as object member name)", "data": "/foo/-/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (multiple escaped characters)", "data": "/~1~0~0~1~1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #1", "data": "/~1.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #2", "data": "/~0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (URI Fragment Identifier) #1", "data": "#", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -267,8 +159,8 @@ "data": "#/", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -276,8 +168,8 @@ "data": "#a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -285,8 +177,8 @@ "data": "/~0~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -294,8 +186,8 @@ "data": "/~0/~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -303,8 +195,8 @@ "data": "/~2", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +204,8 @@ "data": "/~-1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,8 +213,8 @@ "data": "/~~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -330,8 +222,8 @@ "data": "a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -339,8 +231,8 @@ "data": "0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +240,8 @@ "data": "a/a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/regex.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/regex.json index 1134ac003..6efd31668 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/regex.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/regex.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "regex" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid regular expression", "data": "([abc])+\\s+$", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a regular expression with unclosed parens is invalid", "data": "^(abc]", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/relative-json-pointer.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/relative-json-pointer.json index 2f0ae7015..5c4bb8aa9 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/relative-json-pointer.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/relative-json-pointer.json @@ -5,108 +5,64 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "relative-json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid upwards RJP", "data": "1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid downwards RJP", "data": "0/foo/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid up and then down RJP, with array index", "data": "2/0/baz/1/zip", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid RJP taking the member or index name", "data": "0#", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid RJP that is a valid JSON Pointer", "data": "/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +70,8 @@ "data": "-1/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +79,8 @@ "data": "+1/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +88,8 @@ "data": "0##", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +97,8 @@ "data": "01/a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +106,8 @@ "data": "01#", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,18 +115,14 @@ "data": "", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "multi-digit integer prefix", "data": "120/foo/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/time.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/time.json index 3be9f2057..791c43f1c 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/time.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/time.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string", "data": "08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid time string with extra leading zeros", "data": "008:030:006Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "8:3:6Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,26 +64,22 @@ "data": "8:0030:6Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with leap second, Zulu", "data": "23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, Zulu (wrong hour)", "data": "22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,26 +87,22 @@ "data": "23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, zero time-offset", "data": "23:59:60+00:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, zero time-offset (wrong hour)", "data": "22:59:60+00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,35 +110,27 @@ "data": "23:58:60+00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, positive time-offset", "data": "01:29:60+01:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid leap second, large positive time-offset", "data": "23:29:60+23:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, positive time-offset (wrong hour)", "data": "23:59:60+01:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -186,35 +138,27 @@ "data": "23:59:60+00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, negative time-offset", "data": "15:59:60-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid leap second, large negative time-offset", "data": "00:29:60-23:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, negative time-offset (wrong hour)", "data": "23:59:60-01:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,71 +166,51 @@ "data": "23:59:60-00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with second fraction", "data": "23:20:50.52Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with precise second fraction", "data": "08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with plus offset", "data": "08:30:06+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with minus offset", "data": "08:30:06-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "hour, minute in time-offset must be two digits", "data": "08:30:06-8:000", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with case-insensitive Z", "data": "08:30:06z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid time string with invalid hour", "data": "24:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -294,8 +218,8 @@ "data": "00:60:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -303,8 +227,8 @@ "data": "00:00:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +236,8 @@ "data": "22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,8 +245,8 @@ "data": "23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -330,8 +254,8 @@ "data": "01:02:03+24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -339,8 +263,8 @@ "data": "01:02:03+00:60", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +272,8 @@ "data": "01:02:03Z+00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -357,8 +281,8 @@ "data": "08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,8 +290,8 @@ "data": "01:01:01,1111", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -375,8 +299,8 @@ "data": "12:00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -384,8 +308,8 @@ "data": "12:00:00.52", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -393,8 +317,8 @@ "data": "1২:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -402,8 +326,8 @@ "data": "08:30:06#00:20", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -411,8 +335,8 @@ "data": "ab:cd:ef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/unknown.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/unknown.json index 1cfd49b42..2f734ff22 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/unknown.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/unknown.json @@ -5,73 +5,41 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "unknown" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "unknown formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore strings", "data": "string", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-reference.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-reference.json index a95d02ccc..c8de13ee1 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-reference.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-reference.json @@ -5,126 +5,78 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative URI Reference", "data": "/abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI Reference", "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid URI Reference", "data": "abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI fragment", "data": "#fragment", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI fragment", "data": "#frag\\ment", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-template.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-template.json index d12b27ef6..3926be837 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-template.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri-template.json @@ -5,100 +5,60 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid uri-template", "data": "http://example.com/dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid uri-template", "data": "http://example.com/dictionary/{term:1}/{term", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid uri-template without variables", "data": "http://example.com/dictionary", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative uri-template", "data": "dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri.json index a0c282db9..346cb53ad 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uri.json @@ -5,189 +5,109 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag and parentheses", "data": "http://foo.com/blah_(wikipedia)_blah#cite-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with URL-encoded stuff", "data": "http://foo.bar/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid puny-coded URL ", "data": "http://xn--nw2a.xn--j6w193g/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL based on IPv4", "data": "http://223.255.255.254", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with ftp scheme", "data": "ftp://ftp.is.co.za/rfc/rfc1808.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL for a simple text file", "data": "http://www.ietf.org/rfc/rfc2396.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL ", "data": "ldap://[2001:db8::7]/c=GB?objectClass?one", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid mailto URI", "data": "mailto:John.Doe@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid newsgroup URI", "data": "news:comp.infosystems.www.servers.unix", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid tel URI", "data": "tel:+1-816-555-1212", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URN", "data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -195,8 +115,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -204,8 +124,8 @@ "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -213,8 +133,8 @@ "data": "abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,8 +142,8 @@ "data": "http:// shouldfail.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -231,8 +151,8 @@ "data": ":// should fail", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -240,8 +160,8 @@ "data": "bar,baz:foo", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uuid.json b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uuid.json index a546fb46d..49907cacc 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uuid.json +++ b/encoding/jsonschema/testdata/external/tests/draft2019-09/optional/format/uuid.json @@ -5,108 +5,64 @@ "$schema": "https://json-schema.org/draft/2019-09/schema", "format": "uuid" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all upper-case", "data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all lower-case", "data": "2eb8aa08-aa98-11ea-b4aa-73b441d16380", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed case", "data": "2eb8aa08-AA98-11ea-B4Aa-73B441D16380", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all zeroes is valid", "data": "00000000-0000-0000-0000-000000000000", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "wrong length", "data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +70,8 @@ "data": "2eb8aa08-aa98-11ea-73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +79,8 @@ "data": "2eb8aa08-aa98-11ea-b4ga-73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +88,8 @@ "data": "2eb8aa08aa9811eab4aa73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +97,8 @@ "data": "2eb8aa08aa98-11ea-b4aa73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +106,8 @@ "data": "2eb8-aa08-aa98-11ea-b4aa73b44-1d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,45 +115,29 @@ "data": "2eb8aa08aa9811eab4aa73b441d16380----", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid version 4", "data": "98d80576-482e-427f-8434-7f86890ab222", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid version 5", "data": "99c17cbb-656f-564a-940f-1a4568f03487", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "hypothetical version 6", "data": "99c17cbb-656f-664a-940f-1a4568f03487", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "hypothetical version 15", "data": "99c17cbb-656f-f64a-940f-1a4568f03487", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/format.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/format.json index 79a47de10..fc6d5c863 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/format.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/format.json @@ -5,73 +5,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid email string is only an annotation by default", "data": "2962", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -81,73 +49,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "idn-email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid idn-email string is only an annotation by default", "data": "2962", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -157,73 +93,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "regex" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid regex string is only an annotation by default", "data": "^(abc]", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -233,73 +137,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid ipv4 string is only an annotation by default", "data": "127.0.0.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -309,73 +181,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid ipv6 string is only an annotation by default", "data": "12345::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -385,73 +225,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "idn-hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid idn-hostname string is only an annotation by default", "data": "〮실례.테스트", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -461,73 +269,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid hostname string is only an annotation by default", "data": "-a-host-name-that-starts-with--", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -537,73 +313,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "date" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid date string is only an annotation by default", "data": "06/19/1963", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -613,73 +357,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid date-time string is only an annotation by default", "data": "1990-02-31T15:59:60.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -689,73 +401,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid time string is only an annotation by default", "data": "08:30:06 PST", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -765,73 +445,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid json-pointer string is only an annotation by default", "data": "/foo/bar~", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -841,73 +489,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "relative-json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid relative-json-pointer string is only an annotation by default", "data": "/foo/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -917,73 +533,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "iri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid iri string is only an annotation by default", "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -993,73 +577,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "iri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid iri-reference string is only an annotation by default", "data": "\\\\WINDOWS\\filëßåré", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1069,73 +621,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid uri string is only an annotation by default", "data": "//foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1145,73 +665,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid uri-reference string is only an annotation by default", "data": "\\\\WINDOWS\\fileshare", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1221,73 +709,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid uri-template string is only an annotation by default", "data": "http://example.com/dictionary/{term:1}/{term", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1297,73 +753,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uuid" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid uuid string is only an annotation by default", "data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1373,73 +797,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "duration" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid duration string is only an annotation by default", "data": "PT1D", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/ecmascript-regex.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/ecmascript-regex.json index 5789e8c58..3217bd9ee 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/ecmascript-regex.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/ecmascript-regex.json @@ -495,18 +495,14 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "regex" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "when used as a pattern", "data": "\\a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format-assertion.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format-assertion.json index 1c1a6c2bf..d5c1ffb51 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format-assertion.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format-assertion.json @@ -7,8 +7,8 @@ "format": "ipv4" }, "skip": { - "v2": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-false.json\": $schema URI not recognized (and 1 more errors)", - "v3": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-false.json\": $schema URI not recognized (and 1 more errors)" + "v2": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-false.json\": $schema URI not recognized", + "v3": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-false.json\": $schema URI not recognized" }, "tests": [ { @@ -39,8 +39,8 @@ "format": "ipv4" }, "skip": { - "v2": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-true.json\": $schema URI not recognized (and 1 more errors)", - "v3": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-true.json\": $schema URI not recognized (and 1 more errors)" + "v2": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-true.json\": $schema URI not recognized", + "v3": "extract error: invalid $schema URL \"http://localhost:1234/draft2020-12/format-assertion-true.json\": $schema URI not recognized" }, "tests": [ { diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date-time.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date-time.json index c77cd6d77..d0a0f88d4 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date-time.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date-time.json @@ -5,126 +5,74 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string", "data": "1963-06-19T08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string without second fraction", "data": "1963-06-19T08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with plus offset", "data": "1937-01-01T12:00:27.87+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with minus offset", "data": "1990-12-31T15:59:50.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, UTC", "data": "1998-12-31T23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, with minus offset", "data": "1998-12-31T15:59:60.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid date-time past leap second, UTC", "data": "1998-12-31T23:59:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +80,8 @@ "data": "1998-12-31T23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +89,8 @@ "data": "1998-12-31T22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +98,8 @@ "data": "1990-02-31T15:59:59.123-08:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,8 +107,8 @@ "data": "1990-12-31T15:59:59-24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -168,8 +116,8 @@ "data": "1963-06-19T08:30:06.28123+01:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -177,26 +125,22 @@ "data": "06/19/1963 08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "case-insensitive T and Z", "data": "1963-06-19t08:30:06.283185z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "only RFC3339 not all of ISO 8601 are valid", "data": "2013-350T01:01:01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -204,8 +148,8 @@ "data": "1963-6-19T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -213,8 +157,8 @@ "data": "1963-06-1T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,8 +166,8 @@ "data": "1963-06-1৪T00:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -231,8 +175,8 @@ "data": "1963-06-11T0৪:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date.json index dc2661612..b9eb4d64f 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/date.json @@ -5,306 +5,222 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "date" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date string", "data": "1963-06-19", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date string with 31 days in January", "data": "2020-01-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in January", "data": "2020-01-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 28 days in February (normal)", "data": "2021-02-28", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 29 days in February (normal)", "data": "2021-02-29", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 29 days in February (leap)", "data": "2020-02-29", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 30 days in February (leap)", "data": "2020-02-30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in March", "data": "2020-03-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in March", "data": "2020-03-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in April", "data": "2020-04-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in April", "data": "2020-04-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in May", "data": "2020-05-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in May", "data": "2020-05-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in June", "data": "2020-06-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in June", "data": "2020-06-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in July", "data": "2020-07-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in July", "data": "2020-07-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in August", "data": "2020-08-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in August", "data": "2020-08-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in September", "data": "2020-09-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in September", "data": "2020-09-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in October", "data": "2020-10-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in October", "data": "2020-10-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in November", "data": "2020-11-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in November", "data": "2020-11-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in December", "data": "2020-12-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in December", "data": "2020-12-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +228,8 @@ "data": "2020-13-01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,8 +237,8 @@ "data": "06/19/1963", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -330,8 +246,8 @@ "data": "2013-350", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -339,8 +255,8 @@ "data": "1998-1-20", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +264,8 @@ "data": "1998-01-1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -357,8 +273,8 @@ "data": "1998-13-01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,8 +282,8 @@ "data": "1998-04-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -375,26 +291,22 @@ "data": "2021-02-29", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "2020 is a leap year", "data": "2020-02-29", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '৪' (a Bengali 4)", "data": "1963-06-1৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -402,8 +314,8 @@ "data": "20230328", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -411,8 +323,8 @@ "data": "2023-W01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -420,8 +332,8 @@ "data": "2023-W13-2", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -429,8 +341,8 @@ "data": "2022W527", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/duration.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/duration.json index 5afbe0f5e..326817a0c 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/duration.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/duration.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "duration" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid duration string", "data": "P4DT12H30M5S", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid duration string", "data": "PT1D", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "P", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +64,8 @@ "data": "P1YT", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +73,8 @@ "data": "PT", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +82,8 @@ "data": "P2D1Y", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +91,8 @@ "data": "P1D2H", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,89 +100,57 @@ "data": "P2S", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "four years duration", "data": "P4Y", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "zero time, in seconds", "data": "PT0S", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "zero time, in days", "data": "P0D", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one month duration", "data": "P1M", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one minute duration", "data": "PT1M", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one and a half days, in hours", "data": "PT36H", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "one and a half days, in days and hours", "data": "P1DT12H", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two weeks", "data": "P2W", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "weeks cannot be combined with other units", "data": "P1Y2W", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,8 +158,8 @@ "data": "P২Y", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -231,8 +167,8 @@ "data": "P1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/email.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/email.json index 99547c714..f7d3a1c93 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/email.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/email.json @@ -5,162 +5,98 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "tilde in local part is valid", "data": "te~st@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde before local part is valid", "data": "~test@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde after local part is valid", "data": "test~@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a quoted string with a space in the local part is valid", "data": "\"joe bloggs\"@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a quoted string with a double dot in the local part is valid", "data": "\"joe..bloggs\"@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a quoted string with a @ in the local part is valid", "data": "\"joe@bloggs\"@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IPv4-address-literal after the @ is valid", "data": "joe.bloggs@[127.0.0.1]", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IPv6-address-literal after the @ is valid", "data": "joe.bloggs@[IPv6:::1]", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "dot before local part is not valid", "data": ".test@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -168,26 +104,22 @@ "data": "test.@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "two separated dots inside local part are valid", "data": "te.s.t@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two subsequent dots inside local part are not valid", "data": "te..st@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -195,8 +127,8 @@ "data": "joe.bloggs@invalid=domain.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -204,8 +136,8 @@ "data": "joe.bloggs@[127.0.0.300]", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/hostname.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/hostname.json index 1f1188a38..8ca482a22 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/hostname.json @@ -5,90 +5,54 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name", "data": "www.example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid punycoded IDN hostname", "data": "xn--4gbwdl.xn--wgbh1c", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a host name starting with an illegal character", "data": "-a-host-name-that-starts-with--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +60,8 @@ "data": "not_a_valid_host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +69,8 @@ "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +78,8 @@ "data": "-hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +87,8 @@ "data": "hostname-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +96,8 @@ "data": "_hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +105,8 @@ "data": "hostname_", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,72 +114,48 @@ "data": "host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "exceeds maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label starting with digit", "data": "1host", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-email.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-email.json index 40495340e..3c21e994a 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-email.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-email.json @@ -5,99 +5,63 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "idn-email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid idn e-mail (example@example.test in Hangul)", "data": "실례@실례.테스트", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid idn e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-hostname.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-hostname.json index 244a4e98e..33011e8d0 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/idn-hostname.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "idn-hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name (example.test in Hangul)", "data": "실례.테스트", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "illegal first char U+302E Hangul single dot tone mark", "data": "〮실례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "실〮례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +64,8 @@ "data": "실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실례례테스트례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례테스트례례실례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -106,19 +74,15 @@ "data": "-\u003e $1.00 \u003c--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid Chinese Punycode", "comment": "https://tools.ietf.org/html/rfc5890#section-2.3.2.1 https://tools.ietf.org/html/rfc5891#section-4.4", "data": "xn--ihqwcrb4cv8a8dqg056pqjye", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid Punycode", @@ -126,8 +90,8 @@ "data": "xn--X", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -136,8 +100,8 @@ "data": "XN--aa---o47jg78q", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -146,8 +110,8 @@ "data": "-hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -156,8 +120,8 @@ "data": "hello-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -166,8 +130,8 @@ "data": "-hello-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -176,8 +140,8 @@ "data": "ःhello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -186,8 +150,8 @@ "data": "̀hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -196,29 +160,21 @@ "data": "҈hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Exceptions that are PVALID, left-to-right chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "ßς་〇", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Exceptions that are PVALID, right-to-left chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "۽۾", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Exceptions that are DISALLOWED, right-to-left chars", @@ -226,8 +182,8 @@ "data": "ـߺ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -236,8 +192,8 @@ "data": "〱〲〳〴〵〮〯〻", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -246,8 +202,8 @@ "data": "a·l", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -256,8 +212,8 @@ "data": "·l", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -266,8 +222,8 @@ "data": "l·a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -276,19 +232,15 @@ "data": "l·", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "MIDDLE DOT with surrounding 'l's", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "l·l", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Greek KERAIA not followed by Greek", @@ -296,8 +248,8 @@ "data": "α͵S", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -306,19 +258,15 @@ "data": "α͵", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Greek KERAIA followed by Greek", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4", "data": "α͵β", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Hebrew GERESH not preceded by Hebrew", @@ -326,8 +274,8 @@ "data": "A׳ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -336,19 +284,15 @@ "data": "׳ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Hebrew GERESH preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5", "data": "א׳ב", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Hebrew GERSHAYIM not preceded by Hebrew", @@ -356,8 +300,8 @@ "data": "A״ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,19 +310,15 @@ "data": "״ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Hebrew GERSHAYIM preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6", "data": "א״ב", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with no Hiragana, Katakana, or Han", @@ -386,8 +326,8 @@ "data": "def・abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -396,39 +336,27 @@ "data": "・", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "KATAKANA MIDDLE DOT with Hiragana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ぁ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with Katakana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ァ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with Han", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・丈", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Arabic-Indic digits mixed with Extended Arabic-Indic digits", @@ -436,29 +364,21 @@ "data": "ب٠۰", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Arabic-Indic digits not mixed with Extended Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.8", "data": "ب٠ب", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Extended Arabic-Indic digits not mixed with Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.9", "data": "۰0", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH JOINER not preceded by Virama", @@ -466,8 +386,8 @@ "data": "क‍ष", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -476,84 +396,52 @@ "data": "‍ष", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "ZERO WIDTH JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf", "data": "क्‍ष", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH NON-JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1", "data": "क्‌ष", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH NON-JOINER not preceded by Virama but matches regexp", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement", "data": "بي‌بي", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label starting with digit", "data": "1host", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv4.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv4.json index 9455c9543..bdaf0f9de 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv4.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv4.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IP address", "data": "192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IP address with too many components", "data": "127.0.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "256.256.256.256", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,8 +64,8 @@ "data": "127.0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +73,8 @@ "data": "0x7f000001", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +82,8 @@ "data": "2130706433", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -124,26 +92,22 @@ "data": "087.10.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "value without leading zero is valid", "data": "87.10.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '২' (a Bengali 2)", "data": "1২7.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -151,8 +115,8 @@ "data": "192.168.1.0/24", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv6.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv6.json index 352eba157..a9be26acd 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv6.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/ipv6.json @@ -5,99 +5,63 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IPv6 address", "data": "::1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IPv6 address with out-of-range values", "data": "12345::", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "trailing 4 hex symbols is valid", "data": "::abef", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing 5 hex symbols is invalid", "data": "::abcef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,8 +69,8 @@ "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,44 +78,32 @@ "data": "::laptop", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "no digits is valid", "data": "::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "leading colons is valid", "data": "::42:ff:1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing colons is valid", "data": "d6::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "missing leading octet is invalid", "data": ":2:3:4:5:6:7:8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,8 +111,8 @@ "data": "1:2:3:4:5:6:7:", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -168,53 +120,41 @@ "data": ":2:3:4::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single set of double colons in the middle is valid", "data": "1:d6::42", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two sets of double colons is invalid", "data": "1::d6::42", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with the ipv4 section as decimal octets", "data": "1::d6:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with double colons between the sections", "data": "1:2::192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with ipv4 section with octet out of range", "data": "1::2:192.168.256.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,44 +162,36 @@ "data": "1::2:192.168.ff.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with leading double colons (ipv4-mapped ipv6 address)", "data": "::ffff:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "triple colons is invalid", "data": "1:2:3:4:5:::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "8 octets", "data": "1:2:3:4:5:6:7:8", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "insufficient octets without double colons", "data": "1:2:3:4:5:6:7", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -267,8 +199,8 @@ "data": "1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -276,8 +208,8 @@ "data": "127.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -285,8 +217,8 @@ "data": "1:2:3:4:1.2.3", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -294,8 +226,8 @@ "data": " ::1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -303,8 +235,8 @@ "data": "::1 ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +244,8 @@ "data": "fe80::/64", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,26 +253,22 @@ "data": "fe80::a%eth1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a long valid ipv6", "data": "1000:1000:1000:1000:1000:1000:255.255.255.255", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a long invalid ipv6, below length limit, first", "data": "100:100:100:100:100:100:255.255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +276,8 @@ "data": "100:100:100:100:100:100:100:255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -357,8 +285,8 @@ "data": "1:2:3:4:5:6:7:৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,8 +294,8 @@ "data": "1:2::192.16৪.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri-reference.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri-reference.json index 50b98fd91..4dfa77408 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri-reference.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri-reference.json @@ -5,126 +5,78 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "iri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI", "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid protocol-relative IRI Reference", "data": "//ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative IRI Reference", "data": "/âππ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI Reference", "data": "\\\\WINDOWS\\filëßåré", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid IRI Reference", "data": "âππ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI fragment", "data": "#ƒrägmênt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI fragment", "data": "#ƒräg\\mênt", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri.json index d87b18455..fd8c0ebc0 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/iri.json @@ -5,117 +5,69 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "iri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with anchor tag", "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with anchor tag and parentheses", "data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with URL-encoded stuff", "data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI based on IPv6", "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI based on IPv6", "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +75,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +84,8 @@ "data": "\\\\WINDOWS\\filëßåré", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +93,8 @@ "data": "âππ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/json-pointer.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/json-pointer.json index b656197a8..40f60ac87 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/json-pointer.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/json-pointer.json @@ -5,261 +5,153 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid JSON-pointer", "data": "/foo/bar~0/baz~1/%a", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (~ not escaped)", "data": "/foo/bar~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid JSON-pointer with empty segment", "data": "/foo//bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer with the last empty segment", "data": "/foo/bar/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #1", "data": "", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #2", "data": "/foo", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #3", "data": "/foo/0", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #4", "data": "/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #5", "data": "/a~1b", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #6", "data": "/c%d", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #7", "data": "/e^f", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #8", "data": "/g|h", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #9", "data": "/i\\j", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #10", "data": "/k\"l", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #11", "data": "/ ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #12", "data": "/m~0n", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer used adding to the last array position", "data": "/foo/-", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (- used as object member name)", "data": "/foo/-/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (multiple escaped characters)", "data": "/~1~0~0~1~1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #1", "data": "/~1.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #2", "data": "/~0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (URI Fragment Identifier) #1", "data": "#", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -267,8 +159,8 @@ "data": "#/", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -276,8 +168,8 @@ "data": "#a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -285,8 +177,8 @@ "data": "/~0~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -294,8 +186,8 @@ "data": "/~0/~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -303,8 +195,8 @@ "data": "/~2", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +204,8 @@ "data": "/~-1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,8 +213,8 @@ "data": "/~~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -330,8 +222,8 @@ "data": "a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -339,8 +231,8 @@ "data": "0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +240,8 @@ "data": "a/a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/regex.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/regex.json index 681a0ba38..7bfb1db47 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/regex.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/regex.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "regex" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid regular expression", "data": "([abc])+\\s+$", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a regular expression with unclosed parens is invalid", "data": "^(abc]", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/relative-json-pointer.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/relative-json-pointer.json index 56605002a..3e4fea26f 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/relative-json-pointer.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/relative-json-pointer.json @@ -5,108 +5,64 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "relative-json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid upwards RJP", "data": "1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid downwards RJP", "data": "0/foo/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid up and then down RJP, with array index", "data": "2/0/baz/1/zip", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid RJP taking the member or index name", "data": "0#", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid RJP that is a valid JSON Pointer", "data": "/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +70,8 @@ "data": "-1/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +79,8 @@ "data": "+1/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +88,8 @@ "data": "0##", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +97,8 @@ "data": "01/a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +106,8 @@ "data": "01#", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,18 +115,14 @@ "data": "", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "multi-digit integer prefix", "data": "120/foo/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/time.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/time.json index 65ca475ca..88ff644d8 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/time.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/time.json @@ -5,81 +5,49 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string", "data": "08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid time string with extra leading zeros", "data": "008:030:006Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -87,8 +55,8 @@ "data": "8:3:6Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -96,26 +64,22 @@ "data": "8:0030:6Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with leap second, Zulu", "data": "23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, Zulu (wrong hour)", "data": "22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,26 +87,22 @@ "data": "23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, zero time-offset", "data": "23:59:60+00:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, zero time-offset (wrong hour)", "data": "22:59:60+00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,35 +110,27 @@ "data": "23:58:60+00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, positive time-offset", "data": "01:29:60+01:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid leap second, large positive time-offset", "data": "23:29:60+23:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, positive time-offset (wrong hour)", "data": "23:59:60+01:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -186,35 +138,27 @@ "data": "23:59:60+00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, negative time-offset", "data": "15:59:60-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid leap second, large negative time-offset", "data": "00:29:60-23:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, negative time-offset (wrong hour)", "data": "23:59:60-01:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,71 +166,51 @@ "data": "23:59:60-00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with second fraction", "data": "23:20:50.52Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with precise second fraction", "data": "08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with plus offset", "data": "08:30:06+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with minus offset", "data": "08:30:06-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "hour, minute in time-offset must be two digits", "data": "08:30:06-8:000", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with case-insensitive Z", "data": "08:30:06z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid time string with invalid hour", "data": "24:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -294,8 +218,8 @@ "data": "00:60:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -303,8 +227,8 @@ "data": "00:00:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -312,8 +236,8 @@ "data": "22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -321,8 +245,8 @@ "data": "23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -330,8 +254,8 @@ "data": "01:02:03+24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -339,8 +263,8 @@ "data": "01:02:03+00:60", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -348,8 +272,8 @@ "data": "01:02:03Z+00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -357,8 +281,8 @@ "data": "08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -366,8 +290,8 @@ "data": "01:01:01,1111", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -375,8 +299,8 @@ "data": "12:00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -384,8 +308,8 @@ "data": "12:00:00.52", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -393,8 +317,8 @@ "data": "1২:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -402,8 +326,8 @@ "data": "08:30:06#00:20", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -411,8 +335,8 @@ "data": "ab:cd:ef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/unknown.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/unknown.json index c28e739a2..574f0754b 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/unknown.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/unknown.json @@ -5,73 +5,41 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "unknown" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "unknown formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore strings", "data": "string", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-reference.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-reference.json index e84b93798..275027d52 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-reference.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-reference.json @@ -5,126 +5,78 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative URI Reference", "data": "/abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI Reference", "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid URI Reference", "data": "abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI fragment", "data": "#fragment", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI fragment", "data": "#frag\\ment", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-template.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-template.json index 5a20dd66f..0572374a1 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-template.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri-template.json @@ -5,100 +5,60 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid uri-template", "data": "http://example.com/dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid uri-template", "data": "http://example.com/dictionary/{term:1}/{term", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid uri-template without variables", "data": "http://example.com/dictionary", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative uri-template", "data": "dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri.json index 5cd882f2a..723c6e081 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uri.json @@ -5,189 +5,109 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag and parentheses", "data": "http://foo.com/blah_(wikipedia)_blah#cite-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with URL-encoded stuff", "data": "http://foo.bar/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid puny-coded URL ", "data": "http://xn--nw2a.xn--j6w193g/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL based on IPv4", "data": "http://223.255.255.254", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with ftp scheme", "data": "ftp://ftp.is.co.za/rfc/rfc1808.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL for a simple text file", "data": "http://www.ietf.org/rfc/rfc2396.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL ", "data": "ldap://[2001:db8::7]/c=GB?objectClass?one", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid mailto URI", "data": "mailto:John.Doe@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid newsgroup URI", "data": "news:comp.infosystems.www.servers.unix", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid tel URI", "data": "tel:+1-816-555-1212", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URN", "data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -195,8 +115,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -204,8 +124,8 @@ "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -213,8 +133,8 @@ "data": "abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -222,8 +142,8 @@ "data": "http:// shouldfail.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -231,8 +151,8 @@ "data": ":// should fail", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -240,8 +160,8 @@ "data": "bar,baz:foo", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uuid.json b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uuid.json index 9e1078cb7..d1face268 100644 --- a/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uuid.json +++ b/encoding/jsonschema/testdata/external/tests/draft2020-12/optional/format/uuid.json @@ -5,108 +5,64 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "format": "uuid" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all upper-case", "data": "2EB8AA08-AA98-11EA-B4AA-73B441D16380", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all lower-case", "data": "2eb8aa08-aa98-11ea-b4aa-73b441d16380", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed case", "data": "2eb8aa08-AA98-11ea-B4Aa-73B441D16380", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all zeroes is valid", "data": "00000000-0000-0000-0000-000000000000", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "wrong length", "data": "2eb8aa08-aa98-11ea-b4aa-73b441d1638", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -114,8 +70,8 @@ "data": "2eb8aa08-aa98-11ea-73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,8 +79,8 @@ "data": "2eb8aa08-aa98-11ea-b4ga-73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -132,8 +88,8 @@ "data": "2eb8aa08aa9811eab4aa73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -141,8 +97,8 @@ "data": "2eb8aa08aa98-11ea-b4aa73b441d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +106,8 @@ "data": "2eb8-aa08-aa98-11ea-b4aa73b44-1d16380", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -159,45 +115,29 @@ "data": "2eb8aa08aa9811eab4aa73b441d16380----", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid version 4", "data": "98d80576-482e-427f-8434-7f86890ab222", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid version 5", "data": "99c17cbb-656f-564a-940f-1a4568f03487", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "hypothetical version 6", "data": "99c17cbb-656f-664a-940f-1a4568f03487", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "hypothetical version 15", "data": "99c17cbb-656f-f64a-940f-1a4568f03487", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft4/format.json b/encoding/jsonschema/testdata/external/tests/draft4/format.json index f3c9eb626..8975e634f 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/format.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/format.json @@ -4,64 +4,36 @@ "schema": { "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -70,64 +42,36 @@ "schema": { "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -136,64 +80,36 @@ "schema": { "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -202,64 +118,36 @@ "schema": { "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -268,64 +156,36 @@ "schema": { "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -334,64 +194,36 @@ "schema": { "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/date-time.json b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/date-time.json index 79a8c3b92..68e5d6760 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/date-time.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/date-time.json @@ -4,126 +4,74 @@ "schema": { "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string", "data": "1963-06-19T08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string without second fraction", "data": "1963-06-19T08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with plus offset", "data": "1937-01-01T12:00:27.87+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with minus offset", "data": "1990-12-31T15:59:50.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, UTC", "data": "1998-12-31T23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, with minus offset", "data": "1998-12-31T15:59:60.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid date-time past leap second, UTC", "data": "1998-12-31T23:59:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +79,8 @@ "data": "1998-12-31T23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +88,8 @@ "data": "1998-12-31T22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,8 +97,8 @@ "data": "1990-02-31T15:59:59.123-08:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -158,8 +106,8 @@ "data": "1990-12-31T15:59:59-24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -167,8 +115,8 @@ "data": "1963-06-19T08:30:06.28123+01:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -176,26 +124,22 @@ "data": "06/19/1963 08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "case-insensitive T and Z", "data": "1963-06-19t08:30:06.283185z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "only RFC3339 not all of ISO 8601 are valid", "data": "2013-350T01:01:01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -203,8 +147,8 @@ "data": "1963-6-19T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -212,8 +156,8 @@ "data": "1963-06-1T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,8 +165,8 @@ "data": "1963-06-1৪T00:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -230,8 +174,8 @@ "data": "1963-06-11T0৪:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/email.json b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/email.json index 862ceab76..cf5a691ea 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/email.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/email.json @@ -4,117 +4,73 @@ "schema": { "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "tilde in local part is valid", "data": "te~st@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde before local part is valid", "data": "~test@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde after local part is valid", "data": "test~@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "dot before local part is not valid", "data": ".test@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,26 +78,22 @@ "data": "test.@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "two separated dots inside local part are valid", "data": "te.s.t@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two subsequent dots inside local part are not valid", "data": "te..st@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/hostname.json b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/hostname.json index 35095b02e..c2891090f 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/hostname.json @@ -4,90 +4,54 @@ "schema": { "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name", "data": "www.example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid punycoded IDN hostname", "data": "xn--4gbwdl.xn--wgbh1c", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a host name starting with an illegal character", "data": "-a-host-name-that-starts-with--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,8 +59,8 @@ "data": "not_a_valid_host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +68,8 @@ "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,8 +77,8 @@ "data": "-hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,8 +86,8 @@ "data": "hostname-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +95,8 @@ "data": "_hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +104,8 @@ "data": "hostname_", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,63 +113,43 @@ "data": "host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "exceeds maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv4.json b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv4.json index d5e6ee790..97f99e1e0 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv4.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv4.json @@ -4,81 +4,49 @@ "schema": { "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IP address", "data": "192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IP address with too many components", "data": "127.0.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -86,8 +54,8 @@ "data": "256.256.256.256", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,8 +63,8 @@ "data": "127.0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +72,8 @@ "data": "0x7f000001", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,8 +81,8 @@ "data": "2130706433", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,26 +91,22 @@ "data": "087.10.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "value without leading zero is valid", "data": "87.10.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '২' (a Bengali 2)", "data": "1২7.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +114,8 @@ "data": "192.168.1.0/24", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv6.json b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv6.json index 373355d0b..5d3f95aeb 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv6.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/ipv6.json @@ -4,99 +4,63 @@ "schema": { "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IPv6 address", "data": "::1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IPv6 address with out-of-range values", "data": "12345::", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "trailing 4 hex symbols is valid", "data": "::abef", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing 5 hex symbols is invalid", "data": "::abcef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +68,8 @@ "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,44 +77,32 @@ "data": "::laptop", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "no digits is valid", "data": "::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "leading colons is valid", "data": "::42:ff:1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing colons is valid", "data": "d6::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "missing leading octet is invalid", "data": ":2:3:4:5:6:7:8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -158,8 +110,8 @@ "data": "1:2:3:4:5:6:7:", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -167,53 +119,41 @@ "data": ":2:3:4::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single set of double colons in the middle is valid", "data": "1:d6::42", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two sets of double colons is invalid", "data": "1::d6::42", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with the ipv4 section as decimal octets", "data": "1::d6:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with double colons between the sections", "data": "1:2::192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with ipv4 section with octet out of range", "data": "1::2:192.168.256.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,44 +161,36 @@ "data": "1::2:192.168.ff.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with leading double colons (ipv4-mapped ipv6 address)", "data": "::ffff:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "triple colons is invalid", "data": "1:2:3:4:5:::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "8 octets", "data": "1:2:3:4:5:6:7:8", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "insufficient octets without double colons", "data": "1:2:3:4:5:6:7", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -266,8 +198,8 @@ "data": "1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -275,8 +207,8 @@ "data": "127.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -284,8 +216,8 @@ "data": "1:2:3:4:1.2.3", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -293,8 +225,8 @@ "data": " ::1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -302,8 +234,8 @@ "data": "::1 ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -311,8 +243,8 @@ "data": "fe80::/64", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -320,26 +252,22 @@ "data": "fe80::a%eth1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a long valid ipv6", "data": "1000:1000:1000:1000:1000:1000:255.255.255.255", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a long invalid ipv6, below length limit, first", "data": "100:100:100:100:100:100:255.255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -347,8 +275,8 @@ "data": "100:100:100:100:100:100:100:255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -356,8 +284,8 @@ "data": "1:2:3:4:5:6:7:৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -365,8 +293,8 @@ "data": "1:2::192.16৪.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/unknown.json b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/unknown.json index d271b6abd..0e6546a9a 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/unknown.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/unknown.json @@ -4,73 +4,41 @@ "schema": { "format": "unknown" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "unknown formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore strings", "data": "string", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/uri.json b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/uri.json index 34a928102..4afc99427 100644 --- a/encoding/jsonschema/testdata/external/tests/draft4/optional/format/uri.json +++ b/encoding/jsonschema/testdata/external/tests/draft4/optional/format/uri.json @@ -4,189 +4,109 @@ "schema": { "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag and parentheses", "data": "http://foo.com/blah_(wikipedia)_blah#cite-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with URL-encoded stuff", "data": "http://foo.bar/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid puny-coded URL ", "data": "http://xn--nw2a.xn--j6w193g/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL based on IPv4", "data": "http://223.255.255.254", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with ftp scheme", "data": "ftp://ftp.is.co.za/rfc/rfc1808.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL for a simple text file", "data": "http://www.ietf.org/rfc/rfc2396.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL ", "data": "ldap://[2001:db8::7]/c=GB?objectClass?one", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid mailto URI", "data": "mailto:John.Doe@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid newsgroup URI", "data": "news:comp.infosystems.www.servers.unix", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid tel URI", "data": "tel:+1-816-555-1212", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URN", "data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -194,8 +114,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -203,8 +123,8 @@ "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -212,8 +132,8 @@ "data": "abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,8 +141,8 @@ "data": "http:// shouldfail.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -230,8 +150,8 @@ "data": ":// should fail", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -239,8 +159,8 @@ "data": "bar,baz:foo", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft6/format.json b/encoding/jsonschema/testdata/external/tests/draft6/format.json index fd77f12cc..e60cb78b2 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/format.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/format.json @@ -4,64 +4,36 @@ "schema": { "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -70,64 +42,36 @@ "schema": { "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -136,64 +80,36 @@ "schema": { "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -202,64 +118,36 @@ "schema": { "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -268,64 +156,36 @@ "schema": { "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -334,64 +194,36 @@ "schema": { "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -400,64 +232,36 @@ "schema": { "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -466,64 +270,36 @@ "schema": { "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -532,64 +308,36 @@ "schema": { "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/date-time.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/date-time.json index 79a8c3b92..68e5d6760 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/date-time.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/date-time.json @@ -4,126 +4,74 @@ "schema": { "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string", "data": "1963-06-19T08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string without second fraction", "data": "1963-06-19T08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with plus offset", "data": "1937-01-01T12:00:27.87+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with minus offset", "data": "1990-12-31T15:59:50.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, UTC", "data": "1998-12-31T23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, with minus offset", "data": "1998-12-31T15:59:60.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid date-time past leap second, UTC", "data": "1998-12-31T23:59:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +79,8 @@ "data": "1998-12-31T23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +88,8 @@ "data": "1998-12-31T22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,8 +97,8 @@ "data": "1990-02-31T15:59:59.123-08:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -158,8 +106,8 @@ "data": "1990-12-31T15:59:59-24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -167,8 +115,8 @@ "data": "1963-06-19T08:30:06.28123+01:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -176,26 +124,22 @@ "data": "06/19/1963 08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "case-insensitive T and Z", "data": "1963-06-19t08:30:06.283185z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "only RFC3339 not all of ISO 8601 are valid", "data": "2013-350T01:01:01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -203,8 +147,8 @@ "data": "1963-6-19T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -212,8 +156,8 @@ "data": "1963-06-1T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,8 +165,8 @@ "data": "1963-06-1৪T00:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -230,8 +174,8 @@ "data": "1963-06-11T0৪:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/email.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/email.json index 862ceab76..cf5a691ea 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/email.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/email.json @@ -4,117 +4,73 @@ "schema": { "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "tilde in local part is valid", "data": "te~st@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde before local part is valid", "data": "~test@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde after local part is valid", "data": "test~@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "dot before local part is not valid", "data": ".test@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,26 +78,22 @@ "data": "test.@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "two separated dots inside local part are valid", "data": "te.s.t@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two subsequent dots inside local part are not valid", "data": "te..st@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/hostname.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/hostname.json index 35095b02e..c2891090f 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/hostname.json @@ -4,90 +4,54 @@ "schema": { "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name", "data": "www.example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid punycoded IDN hostname", "data": "xn--4gbwdl.xn--wgbh1c", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a host name starting with an illegal character", "data": "-a-host-name-that-starts-with--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,8 +59,8 @@ "data": "not_a_valid_host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +68,8 @@ "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,8 +77,8 @@ "data": "-hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,8 +86,8 @@ "data": "hostname-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +95,8 @@ "data": "_hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +104,8 @@ "data": "hostname_", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,63 +113,43 @@ "data": "host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "exceeds maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv4.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv4.json index d5e6ee790..97f99e1e0 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv4.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv4.json @@ -4,81 +4,49 @@ "schema": { "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IP address", "data": "192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IP address with too many components", "data": "127.0.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -86,8 +54,8 @@ "data": "256.256.256.256", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,8 +63,8 @@ "data": "127.0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +72,8 @@ "data": "0x7f000001", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,8 +81,8 @@ "data": "2130706433", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,26 +91,22 @@ "data": "087.10.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "value without leading zero is valid", "data": "87.10.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '২' (a Bengali 2)", "data": "1২7.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +114,8 @@ "data": "192.168.1.0/24", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv6.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv6.json index 373355d0b..5d3f95aeb 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv6.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/ipv6.json @@ -4,99 +4,63 @@ "schema": { "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IPv6 address", "data": "::1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IPv6 address with out-of-range values", "data": "12345::", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "trailing 4 hex symbols is valid", "data": "::abef", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing 5 hex symbols is invalid", "data": "::abcef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +68,8 @@ "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,44 +77,32 @@ "data": "::laptop", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "no digits is valid", "data": "::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "leading colons is valid", "data": "::42:ff:1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing colons is valid", "data": "d6::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "missing leading octet is invalid", "data": ":2:3:4:5:6:7:8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -158,8 +110,8 @@ "data": "1:2:3:4:5:6:7:", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -167,53 +119,41 @@ "data": ":2:3:4::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single set of double colons in the middle is valid", "data": "1:d6::42", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two sets of double colons is invalid", "data": "1::d6::42", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with the ipv4 section as decimal octets", "data": "1::d6:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with double colons between the sections", "data": "1:2::192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with ipv4 section with octet out of range", "data": "1::2:192.168.256.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,44 +161,36 @@ "data": "1::2:192.168.ff.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with leading double colons (ipv4-mapped ipv6 address)", "data": "::ffff:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "triple colons is invalid", "data": "1:2:3:4:5:::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "8 octets", "data": "1:2:3:4:5:6:7:8", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "insufficient octets without double colons", "data": "1:2:3:4:5:6:7", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -266,8 +198,8 @@ "data": "1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -275,8 +207,8 @@ "data": "127.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -284,8 +216,8 @@ "data": "1:2:3:4:1.2.3", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -293,8 +225,8 @@ "data": " ::1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -302,8 +234,8 @@ "data": "::1 ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -311,8 +243,8 @@ "data": "fe80::/64", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -320,26 +252,22 @@ "data": "fe80::a%eth1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a long valid ipv6", "data": "1000:1000:1000:1000:1000:1000:255.255.255.255", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a long invalid ipv6, below length limit, first", "data": "100:100:100:100:100:100:255.255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -347,8 +275,8 @@ "data": "100:100:100:100:100:100:100:255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -356,8 +284,8 @@ "data": "1:2:3:4:5:6:7:৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -365,8 +293,8 @@ "data": "1:2::192.16৪.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/json-pointer.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/json-pointer.json index 6725f6fbe..d21d2908c 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/json-pointer.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/json-pointer.json @@ -4,261 +4,153 @@ "schema": { "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid JSON-pointer", "data": "/foo/bar~0/baz~1/%a", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (~ not escaped)", "data": "/foo/bar~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid JSON-pointer with empty segment", "data": "/foo//bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer with the last empty segment", "data": "/foo/bar/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #1", "data": "", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #2", "data": "/foo", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #3", "data": "/foo/0", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #4", "data": "/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #5", "data": "/a~1b", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #6", "data": "/c%d", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #7", "data": "/e^f", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #8", "data": "/g|h", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #9", "data": "/i\\j", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #10", "data": "/k\"l", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #11", "data": "/ ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #12", "data": "/m~0n", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer used adding to the last array position", "data": "/foo/-", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (- used as object member name)", "data": "/foo/-/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (multiple escaped characters)", "data": "/~1~0~0~1~1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #1", "data": "/~1.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #2", "data": "/~0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (URI Fragment Identifier) #1", "data": "#", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -266,8 +158,8 @@ "data": "#/", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -275,8 +167,8 @@ "data": "#a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -284,8 +176,8 @@ "data": "/~0~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -293,8 +185,8 @@ "data": "/~0/~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -302,8 +194,8 @@ "data": "/~2", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -311,8 +203,8 @@ "data": "/~-1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -320,8 +212,8 @@ "data": "/~~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -329,8 +221,8 @@ "data": "a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -338,8 +230,8 @@ "data": "0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -347,8 +239,8 @@ "data": "a/a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/unknown.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/unknown.json index d271b6abd..0e6546a9a 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/unknown.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/unknown.json @@ -4,73 +4,41 @@ "schema": { "format": "unknown" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "unknown formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore strings", "data": "string", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-reference.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-reference.json index c9872f700..c2ff7c3c9 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-reference.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-reference.json @@ -4,126 +4,78 @@ "schema": { "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative URI Reference", "data": "/abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI Reference", "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid URI Reference", "data": "abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI fragment", "data": "#fragment", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI fragment", "data": "#frag\\ment", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-template.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-template.json index dc734f0f2..1263aff64 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-template.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri-template.json @@ -4,100 +4,60 @@ "schema": { "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid uri-template", "data": "http://example.com/dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid uri-template", "data": "http://example.com/dictionary/{term:1}/{term", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid uri-template without variables", "data": "http://example.com/dictionary", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative uri-template", "data": "dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri.json b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri.json index 34a928102..4afc99427 100644 --- a/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri.json +++ b/encoding/jsonschema/testdata/external/tests/draft6/optional/format/uri.json @@ -4,189 +4,109 @@ "schema": { "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag and parentheses", "data": "http://foo.com/blah_(wikipedia)_blah#cite-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with URL-encoded stuff", "data": "http://foo.bar/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid puny-coded URL ", "data": "http://xn--nw2a.xn--j6w193g/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL based on IPv4", "data": "http://223.255.255.254", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with ftp scheme", "data": "ftp://ftp.is.co.za/rfc/rfc1808.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL for a simple text file", "data": "http://www.ietf.org/rfc/rfc2396.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL ", "data": "ldap://[2001:db8::7]/c=GB?objectClass?one", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid mailto URI", "data": "mailto:John.Doe@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid newsgroup URI", "data": "news:comp.infosystems.www.servers.unix", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid tel URI", "data": "tel:+1-816-555-1212", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URN", "data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -194,8 +114,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -203,8 +123,8 @@ "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -212,8 +132,8 @@ "data": "abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,8 +141,8 @@ "data": "http:// shouldfail.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -230,8 +150,8 @@ "data": ":// should fail", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -239,8 +159,8 @@ "data": "bar,baz:foo", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/format.json b/encoding/jsonschema/testdata/external/tests/draft7/format.json index 550cbc53e..f5287e41b 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/format.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/format.json @@ -4,64 +4,36 @@ "schema": { "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -70,64 +42,36 @@ "schema": { "format": "idn-email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -136,64 +80,36 @@ "schema": { "format": "regex" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -202,64 +118,36 @@ "schema": { "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -268,64 +156,36 @@ "schema": { "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -334,64 +194,36 @@ "schema": { "format": "idn-hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -400,64 +232,36 @@ "schema": { "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -466,64 +270,36 @@ "schema": { "format": "date" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -532,64 +308,36 @@ "schema": { "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -598,64 +346,36 @@ "schema": { "format": "time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -664,64 +384,36 @@ "schema": { "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -730,64 +422,36 @@ "schema": { "format": "relative-json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -796,64 +460,36 @@ "schema": { "format": "iri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -862,64 +498,36 @@ "schema": { "format": "iri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -928,64 +536,36 @@ "schema": { "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -994,64 +574,36 @@ "schema": { "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] }, @@ -1060,64 +612,36 @@ "schema": { "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date-time.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date-time.json index 79a8c3b92..68e5d6760 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date-time.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date-time.json @@ -4,126 +4,74 @@ "schema": { "format": "date-time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string", "data": "1963-06-19T08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string without second fraction", "data": "1963-06-19T08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with plus offset", "data": "1937-01-01T12:00:27.87+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time string with minus offset", "data": "1990-12-31T15:59:50.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, UTC", "data": "1998-12-31T23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date-time with a leap second, with minus offset", "data": "1998-12-31T15:59:60.123-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid date-time past leap second, UTC", "data": "1998-12-31T23:59:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +79,8 @@ "data": "1998-12-31T23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +88,8 @@ "data": "1998-12-31T22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,8 +97,8 @@ "data": "1990-02-31T15:59:59.123-08:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -158,8 +106,8 @@ "data": "1990-12-31T15:59:59-24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -167,8 +115,8 @@ "data": "1963-06-19T08:30:06.28123+01:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -176,26 +124,22 @@ "data": "06/19/1963 08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "case-insensitive T and Z", "data": "1963-06-19t08:30:06.283185z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "only RFC3339 not all of ISO 8601 are valid", "data": "2013-350T01:01:01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -203,8 +147,8 @@ "data": "1963-6-19T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -212,8 +156,8 @@ "data": "1963-06-1T08:30:06.283185Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,8 +165,8 @@ "data": "1963-06-1৪T00:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -230,8 +174,8 @@ "data": "1963-06-11T0৪:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date.json index 50b738038..51ae4ccd4 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/date.json @@ -4,306 +4,222 @@ "schema": { "format": "date" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date string", "data": "1963-06-19", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid date string with 31 days in January", "data": "2020-01-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in January", "data": "2020-01-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 28 days in February (normal)", "data": "2021-02-28", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 29 days in February (normal)", "data": "2021-02-29", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 29 days in February (leap)", "data": "2020-02-29", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 30 days in February (leap)", "data": "2020-02-30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in March", "data": "2020-03-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in March", "data": "2020-03-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in April", "data": "2020-04-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in April", "data": "2020-04-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in May", "data": "2020-05-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in May", "data": "2020-05-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in June", "data": "2020-06-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in June", "data": "2020-06-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in July", "data": "2020-07-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in July", "data": "2020-07-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in August", "data": "2020-08-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in August", "data": "2020-08-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in September", "data": "2020-09-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in September", "data": "2020-09-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in October", "data": "2020-10-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in October", "data": "2020-10-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 30 days in November", "data": "2020-11-30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 31 days in November", "data": "2020-11-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid date string with 31 days in December", "data": "2020-12-31", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a invalid date string with 32 days in December", "data": "2020-12-32", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -311,8 +227,8 @@ "data": "2020-13-01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -320,8 +236,8 @@ "data": "06/19/1963", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -329,8 +245,8 @@ "data": "2013-350", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -338,8 +254,8 @@ "data": "1998-1-20", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -347,8 +263,8 @@ "data": "1998-01-1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -356,8 +272,8 @@ "data": "1998-13-01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -365,8 +281,8 @@ "data": "1998-04-31", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -374,26 +290,22 @@ "data": "2021-02-29", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "2020 is a leap year", "data": "2020-02-29", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '৪' (a Bengali 4)", "data": "1963-06-1৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -401,8 +313,8 @@ "data": "20230328", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -410,8 +322,8 @@ "data": "2023-W01", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -419,8 +331,8 @@ "data": "2023-W13-2", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -428,8 +340,8 @@ "data": "2022W527", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/email.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/email.json index 862ceab76..cf5a691ea 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/email.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/email.json @@ -4,117 +4,73 @@ "schema": { "format": "email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "tilde in local part is valid", "data": "te~st@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde before local part is valid", "data": "~test@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "tilde after local part is valid", "data": "test~@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "dot before local part is not valid", "data": ".test@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,26 +78,22 @@ "data": "test.@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "two separated dots inside local part are valid", "data": "te.s.t@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two subsequent dots inside local part are not valid", "data": "te..st@example.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/hostname.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/hostname.json index 35095b02e..c2891090f 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/hostname.json @@ -4,90 +4,54 @@ "schema": { "format": "hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name", "data": "www.example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid punycoded IDN hostname", "data": "xn--4gbwdl.xn--wgbh1c", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a host name starting with an illegal character", "data": "-a-host-name-that-starts-with--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,8 +59,8 @@ "data": "not_a_valid_host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +68,8 @@ "data": "a-vvvvvvvvvvvvvvvveeeeeeeeeeeeeeeerrrrrrrrrrrrrrrryyyyyyyyyyyyyyyy-long-host-name-component", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,8 +77,8 @@ "data": "-hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,8 +86,8 @@ "data": "hostname-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +95,8 @@ "data": "_hostname", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +104,8 @@ "data": "hostname_", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,63 +113,43 @@ "data": "host_name", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "exceeds maximum label length", "data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-email.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-email.json index 52b7f0aa6..37182e891 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-email.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-email.json @@ -4,99 +4,63 @@ "schema": { "format": "idn-email" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid idn e-mail (example@example.test in Hangul)", "data": "실례@실례.테스트", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid idn e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid e-mail address", "data": "joe.bloggs@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid e-mail address", "data": "2962", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-hostname.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-hostname.json index 5244d98e2..230a5b68e 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-hostname.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/idn-hostname.json @@ -4,81 +4,49 @@ "schema": { "format": "idn-hostname" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid host name (example.test in Hangul)", "data": "실례.테스트", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "illegal first char U+302E Hangul single dot tone mark", "data": "〮실례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -86,8 +54,8 @@ "data": "실〮례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,8 +63,8 @@ "data": "실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실실례례테스트례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례례례례례례례례테스트례례례례례례례례례례례례테스트례례실례.테스트", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -105,19 +73,15 @@ "data": "-\u003e $1.00 \u003c--", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid Chinese Punycode", "comment": "https://tools.ietf.org/html/rfc5890#section-2.3.2.1 https://tools.ietf.org/html/rfc5891#section-4.4", "data": "xn--ihqwcrb4cv8a8dqg056pqjye", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid Punycode", @@ -125,8 +89,8 @@ "data": "xn--X", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -135,8 +99,8 @@ "data": "XN--aa---o47jg78q", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -145,8 +109,8 @@ "data": "-hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -155,8 +119,8 @@ "data": "hello-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -165,8 +129,8 @@ "data": "-hello-", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -175,8 +139,8 @@ "data": "ःhello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -185,8 +149,8 @@ "data": "̀hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -195,29 +159,21 @@ "data": "҈hello", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Exceptions that are PVALID, left-to-right chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "ßς་〇", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Exceptions that are PVALID, right-to-left chars", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6", "data": "۽۾", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Exceptions that are DISALLOWED, right-to-left chars", @@ -225,8 +181,8 @@ "data": "ـߺ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -235,8 +191,8 @@ "data": "〱〲〳〴〵〮〯〻", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -245,8 +201,8 @@ "data": "a·l", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -255,8 +211,8 @@ "data": "·l", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -265,8 +221,8 @@ "data": "l·a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -275,19 +231,15 @@ "data": "l·", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "MIDDLE DOT with surrounding 'l's", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.3", "data": "l·l", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Greek KERAIA not followed by Greek", @@ -295,8 +247,8 @@ "data": "α͵S", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -305,19 +257,15 @@ "data": "α͵", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Greek KERAIA followed by Greek", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.4", "data": "α͵β", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Hebrew GERESH not preceded by Hebrew", @@ -325,8 +273,8 @@ "data": "A׳ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -335,19 +283,15 @@ "data": "׳ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Hebrew GERESH preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.5", "data": "א׳ב", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Hebrew GERSHAYIM not preceded by Hebrew", @@ -355,8 +299,8 @@ "data": "A״ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -365,19 +309,15 @@ "data": "״ב", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Hebrew GERSHAYIM preceded by Hebrew", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.6", "data": "א״ב", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with no Hiragana, Katakana, or Han", @@ -385,8 +325,8 @@ "data": "def・abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -395,39 +335,27 @@ "data": "・", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "KATAKANA MIDDLE DOT with Hiragana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ぁ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with Katakana", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・ァ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "KATAKANA MIDDLE DOT with Han", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.7", "data": "・丈", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Arabic-Indic digits mixed with Extended Arabic-Indic digits", @@ -435,29 +363,21 @@ "data": "ب٠۰", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "Arabic-Indic digits not mixed with Extended Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.8", "data": "ب٠ب", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "Extended Arabic-Indic digits not mixed with Arabic-Indic digits", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.9", "data": "۰0", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH JOINER not preceded by Virama", @@ -465,8 +385,8 @@ "data": "क‍ष", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -475,75 +395,47 @@ "data": "‍ष", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "ZERO WIDTH JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.2 https://www.unicode.org/review/pr-37.pdf", "data": "क्‍ष", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH NON-JOINER preceded by Virama", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1", "data": "क्‌ष", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "ZERO WIDTH NON-JOINER not preceded by Virama but matches regexp", "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.3.3 https://tools.ietf.org/html/rfc5892#appendix-A.1 https://www.w3.org/TR/alreq/#h_disjoining_enforcement", "data": "بي‌بي", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label", "data": "hostname", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with hyphen", "data": "host-name", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label with digits", "data": "h0stn4me", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "single label ending with digit", "data": "hostnam3", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv4.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv4.json index d5e6ee790..97f99e1e0 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv4.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv4.json @@ -4,81 +4,49 @@ "schema": { "format": "ipv4" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IP address", "data": "192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IP address with too many components", "data": "127.0.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -86,8 +54,8 @@ "data": "256.256.256.256", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,8 +63,8 @@ "data": "127.0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +72,8 @@ "data": "0x7f000001", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,8 +81,8 @@ "data": "2130706433", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -123,26 +91,22 @@ "data": "087.10.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "value without leading zero is valid", "data": "87.10.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid non-ASCII '২' (a Bengali 2)", "data": "1২7.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -150,8 +114,8 @@ "data": "192.168.1.0/24", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv6.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv6.json index 373355d0b..5d3f95aeb 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv6.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/ipv6.json @@ -4,99 +4,63 @@ "schema": { "format": "ipv6" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IPv6 address", "data": "::1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an IPv6 address with out-of-range values", "data": "12345::", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "trailing 4 hex symbols is valid", "data": "::abef", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing 5 hex symbols is invalid", "data": "::abcef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -104,8 +68,8 @@ "data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,44 +77,32 @@ "data": "::laptop", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "no digits is valid", "data": "::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "leading colons is valid", "data": "::42:ff:1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "trailing colons is valid", "data": "d6::", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "missing leading octet is invalid", "data": ":2:3:4:5:6:7:8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -158,8 +110,8 @@ "data": "1:2:3:4:5:6:7:", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -167,53 +119,41 @@ "data": ":2:3:4::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "single set of double colons in the middle is valid", "data": "1:d6::42", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "two sets of double colons is invalid", "data": "1::d6::42", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with the ipv4 section as decimal octets", "data": "1::d6:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with double colons between the sections", "data": "1:2::192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "mixed format with ipv4 section with octet out of range", "data": "1::2:192.168.256.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,44 +161,36 @@ "data": "1::2:192.168.ff.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "mixed format with leading double colons (ipv4-mapped ipv6 address)", "data": "::ffff:192.168.0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "triple colons is invalid", "data": "1:2:3:4:5:::8", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "8 octets", "data": "1:2:3:4:5:6:7:8", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "insufficient octets without double colons", "data": "1:2:3:4:5:6:7", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -266,8 +198,8 @@ "data": "1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -275,8 +207,8 @@ "data": "127.0.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -284,8 +216,8 @@ "data": "1:2:3:4:1.2.3", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -293,8 +225,8 @@ "data": " ::1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -302,8 +234,8 @@ "data": "::1 ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -311,8 +243,8 @@ "data": "fe80::/64", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -320,26 +252,22 @@ "data": "fe80::a%eth1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a long valid ipv6", "data": "1000:1000:1000:1000:1000:1000:255.255.255.255", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a long invalid ipv6, below length limit, first", "data": "100:100:100:100:100:100:255.255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -347,8 +275,8 @@ "data": "100:100:100:100:100:100:100:255.255.255.255", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -356,8 +284,8 @@ "data": "1:2:3:4:5:6:7:৪", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -365,8 +293,8 @@ "data": "1:2::192.16৪.0.1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri-reference.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri-reference.json index d9cef9cca..4ea325ce4 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri-reference.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri-reference.json @@ -4,126 +4,78 @@ "schema": { "format": "iri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI", "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid protocol-relative IRI Reference", "data": "//ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative IRI Reference", "data": "/âππ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI Reference", "data": "\\\\WINDOWS\\filëßåré", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid IRI Reference", "data": "âππ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI fragment", "data": "#ƒrägmênt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI fragment", "data": "#ƒräg\\mênt", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri.json index e0d37e909..f315cb202 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/iri.json @@ -4,117 +4,69 @@ "schema": { "format": "iri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with anchor tag", "data": "http://ƒøø.ßår/?∂éœ=πîx#πîüx", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with anchor tag and parentheses", "data": "http://ƒøø.com/blah_(wîkïpédiå)_blah#ßité-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with URL-encoded stuff", "data": "http://ƒøø.ßår/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid IRI based on IPv6", "data": "http://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid IRI based on IPv6", "data": "http://2001:0db8:85a3:0000:0000:8a2e:0370:7334", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,8 +74,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +83,8 @@ "data": "\\\\WINDOWS\\filëßåré", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +92,8 @@ "data": "âππ", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/json-pointer.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/json-pointer.json index 6725f6fbe..d21d2908c 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/json-pointer.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/json-pointer.json @@ -4,261 +4,153 @@ "schema": { "format": "json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid JSON-pointer", "data": "/foo/bar~0/baz~1/%a", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (~ not escaped)", "data": "/foo/bar~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid JSON-pointer with empty segment", "data": "/foo//bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer with the last empty segment", "data": "/foo/bar/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #1", "data": "", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #2", "data": "/foo", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #3", "data": "/foo/0", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #4", "data": "/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #5", "data": "/a~1b", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #6", "data": "/c%d", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #7", "data": "/e^f", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #8", "data": "/g|h", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #9", "data": "/i\\j", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #10", "data": "/k\"l", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #11", "data": "/ ", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer as stated in RFC 6901 #12", "data": "/m~0n", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer used adding to the last array position", "data": "/foo/-", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (- used as object member name)", "data": "/foo/-/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (multiple escaped characters)", "data": "/~1~0~0~1~1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #1", "data": "/~1.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid JSON-pointer (escaped with fraction part) #2", "data": "/~0.1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "not a valid JSON-pointer (URI Fragment Identifier) #1", "data": "#", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -266,8 +158,8 @@ "data": "#/", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -275,8 +167,8 @@ "data": "#a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -284,8 +176,8 @@ "data": "/~0~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -293,8 +185,8 @@ "data": "/~0/~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -302,8 +194,8 @@ "data": "/~2", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -311,8 +203,8 @@ "data": "/~-1", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -320,8 +212,8 @@ "data": "/~~", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -329,8 +221,8 @@ "data": "a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -338,8 +230,8 @@ "data": "0", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -347,8 +239,8 @@ "data": "a/a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/regex.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/regex.json index 41c805b64..fb7c477ac 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/regex.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/regex.json @@ -4,81 +4,49 @@ "schema": { "format": "regex" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid regular expression", "data": "([abc])+\\s+$", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a regular expression with unclosed parens is invalid", "data": "^(abc]", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/relative-json-pointer.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/relative-json-pointer.json index d064ac8ad..69a53c24a 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/relative-json-pointer.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/relative-json-pointer.json @@ -4,108 +4,64 @@ "schema": { "format": "relative-json-pointer" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid upwards RJP", "data": "1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid downwards RJP", "data": "0/foo/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid up and then down RJP, with array index", "data": "2/0/baz/1/zip", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid RJP taking the member or index name", "data": "0#", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid RJP that is a valid JSON Pointer", "data": "/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -113,8 +69,8 @@ "data": "-1/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,8 +78,8 @@ "data": "+1/foo/bar", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -131,8 +87,8 @@ "data": "0##", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -140,8 +96,8 @@ "data": "01/a", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,8 +105,8 @@ "data": "01#", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -158,18 +114,14 @@ "data": "", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "multi-digit integer prefix", "data": "120/foo/bar", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/time.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/time.json index 9916c5e05..ace4b9a81 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/time.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/time.json @@ -4,81 +4,49 @@ "schema": { "format": "time" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string", "data": "08:30:06Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid time string with extra leading zeros", "data": "008:030:006Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -86,8 +54,8 @@ "data": "8:3:6Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -95,26 +63,22 @@ "data": "8:0030:6Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with leap second, Zulu", "data": "23:59:60Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, Zulu (wrong hour)", "data": "22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -122,26 +86,22 @@ "data": "23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, zero time-offset", "data": "23:59:60+00:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, zero time-offset (wrong hour)", "data": "22:59:60+00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -149,35 +109,27 @@ "data": "23:58:60+00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, positive time-offset", "data": "01:29:60+01:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid leap second, large positive time-offset", "data": "23:29:60+23:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, positive time-offset (wrong hour)", "data": "23:59:60+01:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -185,35 +137,27 @@ "data": "23:59:60+00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "valid leap second, negative time-offset", "data": "15:59:60-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "valid leap second, large negative time-offset", "data": "00:29:60-23:30", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "invalid leap second, negative time-offset (wrong hour)", "data": "23:59:60-01:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,71 +165,51 @@ "data": "23:59:60-00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with second fraction", "data": "23:20:50.52Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with precise second fraction", "data": "08:30:06.283185Z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with plus offset", "data": "08:30:06+00:20", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid time string with minus offset", "data": "08:30:06-08:00", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "hour, minute in time-offset must be two digits", "data": "08:30:06-8:000", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid time string with case-insensitive Z", "data": "08:30:06z", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid time string with invalid hour", "data": "24:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -293,8 +217,8 @@ "data": "00:60:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -302,8 +226,8 @@ "data": "00:00:61Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -311,8 +235,8 @@ "data": "22:59:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -320,8 +244,8 @@ "data": "23:58:60Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -329,8 +253,8 @@ "data": "01:02:03+24:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -338,8 +262,8 @@ "data": "01:02:03+00:60", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -347,8 +271,8 @@ "data": "01:02:03Z+00:30", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -356,8 +280,8 @@ "data": "08:30:06 PST", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -365,8 +289,8 @@ "data": "01:01:01,1111", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -374,8 +298,8 @@ "data": "12:00:00", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -383,8 +307,8 @@ "data": "12:00:00.52", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -392,8 +316,8 @@ "data": "1২:00:00Z", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -401,8 +325,8 @@ "data": "08:30:06#00:20", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -410,8 +334,8 @@ "data": "ab:cd:ef", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/unknown.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/unknown.json index d271b6abd..0e6546a9a 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/unknown.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/unknown.json @@ -4,73 +4,41 @@ "schema": { "format": "unknown" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "unknown formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "unknown formats ignore strings", "data": "string", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-reference.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-reference.json index c9872f700..c2ff7c3c9 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-reference.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-reference.json @@ -4,126 +4,78 @@ "schema": { "format": "uri-reference" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative URI Reference", "data": "/abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI Reference", "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid URI Reference", "data": "abc", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URI fragment", "data": "#fragment", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid URI fragment", "data": "#frag\\ment", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ] diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-template.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-template.json index dc734f0f2..1263aff64 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-template.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri-template.json @@ -4,100 +4,60 @@ "schema": { "format": "uri-template" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid uri-template", "data": "http://example.com/dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid uri-template", "data": "http://example.com/dictionary/{term:1}/{term", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { "description": "a valid uri-template without variables", "data": "http://example.com/dictionary", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid relative uri-template", "data": "dictionary/{term:1}/{term}", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true } ] } diff --git a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri.json b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri.json index 34a928102..4afc99427 100644 --- a/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri.json +++ b/encoding/jsonschema/testdata/external/tests/draft7/optional/format/uri.json @@ -4,189 +4,109 @@ "schema": { "format": "uri" }, - "skip": { - "v2": "extract error: keyword \"format\" not yet implemented", - "v3": "extract error: keyword \"format\" not yet implemented" - }, "tests": [ { "description": "all string formats ignore integers", "data": 12, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore floats", "data": 13.7, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore objects", "data": {}, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore arrays", "data": [], - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore booleans", "data": false, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "all string formats ignore nulls", "data": null, - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag", "data": "http://foo.bar/?baz=qux#quux", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with anchor tag and parentheses", "data": "http://foo.com/blah_(wikipedia)_blah#cite-1", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with URL-encoded stuff", "data": "http://foo.bar/?q=Test%20URL-encoded%20stuff", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid puny-coded URL ", "data": "http://xn--nw2a.xn--j6w193g/", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with many special characters", "data": "http://-.~_!$\u0026'()*+,;=:%40:80%2f::::::@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL based on IPv4", "data": "http://223.255.255.254", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL with ftp scheme", "data": "ftp://ftp.is.co.za/rfc/rfc1808.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL for a simple text file", "data": "http://www.ietf.org/rfc/rfc2396.txt", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URL ", "data": "ldap://[2001:db8::7]/c=GB?objectClass?one", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid mailto URI", "data": "mailto:John.Doe@example.com", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid newsgroup URI", "data": "news:comp.infosystems.www.servers.unix", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid tel URI", "data": "tel:+1-816-555-1212", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "a valid URN", "data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2", - "valid": true, - "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" - } + "valid": true }, { "description": "an invalid protocol-relative URI Reference", "data": "//foo.bar/?baz=qux#quux", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -194,8 +114,8 @@ "data": "/abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -203,8 +123,8 @@ "data": "\\\\WINDOWS\\fileshare", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -212,8 +132,8 @@ "data": "abc", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -221,8 +141,8 @@ "data": "http:// shouldfail.com", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -230,8 +150,8 @@ "data": ":// should fail", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } }, { @@ -239,8 +159,8 @@ "data": "bar,baz:foo", "valid": false, "skip": { - "v2": "could not compile schema", - "v3": "could not compile schema" + "v2": "unexpected success", + "v3": "unexpected success" } } ]