Skip to content

Commit 0407beb

Browse files
authored
Upgrade Core to 7534bfe0108824e8f84de77a270f7d0bdd667819 (#763)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent cd6ed95 commit 0407beb

8 files changed

Lines changed: 806 additions & 8 deletions

File tree

DEPENDENCIES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02
2-
core https://github.com/sourcemeta/core 99748ef90c6c365d49ce4287b781e532a3586553
2+
core https://github.com/sourcemeta/core 7534bfe0108824e8f84de77a270f7d0bdd667819
33
jsonschema-test-suite https://github.com/json-schema-org/JSON-Schema-Test-Suite c7257e92580678a086f0b9243a1903ed88bd27f7

test/evaluator/evaluator_2019_09.json

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4875,5 +4875,141 @@
48754875
"The integer value was not expected to validate against the empty enumeration"
48764876
]
48774877
}
4878+
},
4879+
{
4880+
"description": "id_empty_string_top_level",
4881+
"schema": {
4882+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4883+
"$id": "",
4884+
"type": "string"
4885+
},
4886+
"instance": "foo bar",
4887+
"valid": true,
4888+
"fast": {
4889+
"pre": [
4890+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4891+
],
4892+
"post": [
4893+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4894+
],
4895+
"descriptions": [
4896+
"The value was expected to be of type string"
4897+
]
4898+
},
4899+
"exhaustive": {
4900+
"pre": [
4901+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4902+
],
4903+
"post": [
4904+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4905+
],
4906+
"descriptions": [
4907+
"The value was expected to be of type string"
4908+
]
4909+
}
4910+
},
4911+
{
4912+
"description": "id_hash_top_level",
4913+
"schema": {
4914+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4915+
"$id": "#",
4916+
"type": "string"
4917+
},
4918+
"instance": "foo bar",
4919+
"valid": true,
4920+
"fast": {
4921+
"pre": [
4922+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4923+
],
4924+
"post": [
4925+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4926+
],
4927+
"descriptions": [
4928+
"The value was expected to be of type string"
4929+
]
4930+
},
4931+
"exhaustive": {
4932+
"pre": [
4933+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4934+
],
4935+
"post": [
4936+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4937+
],
4938+
"descriptions": [
4939+
"The value was expected to be of type string"
4940+
]
4941+
}
4942+
},
4943+
{
4944+
"description": "id_empty_string_nested",
4945+
"schema": {
4946+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4947+
"$id": "https://www.example.com",
4948+
"$ref": "#/$defs/test",
4949+
"$defs": { "test": { "$id": "", "type": "string" } }
4950+
},
4951+
"instance": "foo bar",
4952+
"valid": true,
4953+
"fast": {
4954+
"pre": [
4955+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4956+
],
4957+
"post": [
4958+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4959+
],
4960+
"descriptions": [
4961+
"The value was expected to be of type string"
4962+
]
4963+
},
4964+
"exhaustive": {
4965+
"pre": [
4966+
[ "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ],
4967+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4968+
],
4969+
"post": [
4970+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ],
4971+
[ true, "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ]
4972+
],
4973+
"descriptions": [
4974+
"The value was expected to be of type string",
4975+
"The string value was expected to validate against the referenced schema"
4976+
]
4977+
}
4978+
},
4979+
{
4980+
"description": "id_hash_nested",
4981+
"schema": {
4982+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4983+
"$id": "https://www.example.com",
4984+
"$ref": "#/$defs/test",
4985+
"$defs": { "test": { "$id": "#", "type": "string" } }
4986+
},
4987+
"instance": "foo bar",
4988+
"valid": true,
4989+
"fast": {
4990+
"pre": [
4991+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4992+
],
4993+
"post": [
4994+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4995+
],
4996+
"descriptions": [
4997+
"The value was expected to be of type string"
4998+
]
4999+
},
5000+
"exhaustive": {
5001+
"pre": [
5002+
[ "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ],
5003+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
5004+
],
5005+
"post": [
5006+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ],
5007+
[ true, "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ]
5008+
],
5009+
"descriptions": [
5010+
"The value was expected to be of type string",
5011+
"The string value was expected to validate against the referenced schema"
5012+
]
5013+
}
48785014
}
48795015
]

test/evaluator/evaluator_2020_12.json

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4228,5 +4228,141 @@
42284228
"The integer value was not expected to validate against the empty enumeration"
42294229
]
42304230
}
4231+
},
4232+
{
4233+
"description": "id_empty_string_top_level",
4234+
"schema": {
4235+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4236+
"$id": "",
4237+
"type": "string"
4238+
},
4239+
"instance": "foo bar",
4240+
"valid": true,
4241+
"fast": {
4242+
"pre": [
4243+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4244+
],
4245+
"post": [
4246+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4247+
],
4248+
"descriptions": [
4249+
"The value was expected to be of type string"
4250+
]
4251+
},
4252+
"exhaustive": {
4253+
"pre": [
4254+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4255+
],
4256+
"post": [
4257+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4258+
],
4259+
"descriptions": [
4260+
"The value was expected to be of type string"
4261+
]
4262+
}
4263+
},
4264+
{
4265+
"description": "id_hash_top_level",
4266+
"schema": {
4267+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4268+
"$id": "#",
4269+
"type": "string"
4270+
},
4271+
"instance": "foo bar",
4272+
"valid": true,
4273+
"fast": {
4274+
"pre": [
4275+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4276+
],
4277+
"post": [
4278+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4279+
],
4280+
"descriptions": [
4281+
"The value was expected to be of type string"
4282+
]
4283+
},
4284+
"exhaustive": {
4285+
"pre": [
4286+
[ "AssertionTypeStrict", "/type", "#/type", "" ]
4287+
],
4288+
"post": [
4289+
[ true, "AssertionTypeStrict", "/type", "#/type", "" ]
4290+
],
4291+
"descriptions": [
4292+
"The value was expected to be of type string"
4293+
]
4294+
}
4295+
},
4296+
{
4297+
"description": "id_empty_string_nested",
4298+
"schema": {
4299+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4300+
"$id": "https://www.example.com",
4301+
"$ref": "#/$defs/test",
4302+
"$defs": { "test": { "$id": "", "type": "string" } }
4303+
},
4304+
"instance": "foo bar",
4305+
"valid": true,
4306+
"fast": {
4307+
"pre": [
4308+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4309+
],
4310+
"post": [
4311+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4312+
],
4313+
"descriptions": [
4314+
"The value was expected to be of type string"
4315+
]
4316+
},
4317+
"exhaustive": {
4318+
"pre": [
4319+
[ "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ],
4320+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4321+
],
4322+
"post": [
4323+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ],
4324+
[ true, "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ]
4325+
],
4326+
"descriptions": [
4327+
"The value was expected to be of type string",
4328+
"The string value was expected to validate against the referenced schema"
4329+
]
4330+
}
4331+
},
4332+
{
4333+
"description": "id_hash_nested",
4334+
"schema": {
4335+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4336+
"$id": "https://www.example.com",
4337+
"$ref": "#/$defs/test",
4338+
"$defs": { "test": { "$id": "#", "type": "string" } }
4339+
},
4340+
"instance": "foo bar",
4341+
"valid": true,
4342+
"fast": {
4343+
"pre": [
4344+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4345+
],
4346+
"post": [
4347+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4348+
],
4349+
"descriptions": [
4350+
"The value was expected to be of type string"
4351+
]
4352+
},
4353+
"exhaustive": {
4354+
"pre": [
4355+
[ "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ],
4356+
[ "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ]
4357+
],
4358+
"post": [
4359+
[ true, "AssertionTypeStrict", "/$ref/type", "https://www.example.com#/$defs/test/type", "" ],
4360+
[ true, "ControlJump", "/$ref", "https://www.example.com#/$ref", "" ]
4361+
],
4362+
"descriptions": [
4363+
"The value was expected to be of type string",
4364+
"The string value was expected to validate against the referenced schema"
4365+
]
4366+
}
42314367
}
42324368
]

0 commit comments

Comments
 (0)