Skip to content

Commit 78c8882

Browse files
authored
Merge pull request #618 from json-schema-org/gregsdennis/contentschema-should-fail-content
added type:object to contentSchema schemas
2 parents 5cbc53b + a41f2f6 commit 78c8882

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/draft-next/content.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"$schema": "https://json-schema.org/draft/next/schema",
8484
"contentMediaType": "application/json",
8585
"contentEncoding": "base64",
86-
"contentSchema": { "required": ["foo"], "properties": { "foo": { "type": "string" } } }
86+
"contentSchema": { "type": "object", "required": ["foo"], "properties": { "foo": { "type": "string" } } }
8787
},
8888
"tests": [
8989
{

tests/draft2019-09/content.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"$schema": "https://json-schema.org/draft/2019-09/schema",
8484
"contentMediaType": "application/json",
8585
"contentEncoding": "base64",
86-
"contentSchema": { "required": ["foo"], "properties": { "foo": { "type": "string" } } }
86+
"contentSchema": { "type": "object", "required": ["foo"], "properties": { "foo": { "type": "string" } } }
8787
},
8888
"tests": [
8989
{

tests/draft2020-12/content.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"$schema": "https://json-schema.org/draft/2020-12/schema",
8484
"contentMediaType": "application/json",
8585
"contentEncoding": "base64",
86-
"contentSchema": { "required": ["foo"], "properties": { "foo": { "type": "string" } } }
86+
"contentSchema": { "type": "object", "required": ["foo"], "properties": { "foo": { "type": "string" } } }
8787
},
8888
"tests": [
8989
{

0 commit comments

Comments
 (0)