Skip to content

Commit

Permalink
Merge pull request #618 from json-schema-org/gregsdennis/contentschem…
Browse files Browse the repository at this point in the history
…a-should-fail-content

added type:object to contentSchema schemas
  • Loading branch information
Julian authored Nov 28, 2022
2 parents 5cbc53b + a41f2f6 commit 78c8882
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/draft-next/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"$schema": "https://json-schema.org/draft/next/schema",
"contentMediaType": "application/json",
"contentEncoding": "base64",
"contentSchema": { "required": ["foo"], "properties": { "foo": { "type": "string" } } }
"contentSchema": { "type": "object", "required": ["foo"], "properties": { "foo": { "type": "string" } } }
},
"tests": [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/draft2019-09/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"$schema": "https://json-schema.org/draft/2019-09/schema",
"contentMediaType": "application/json",
"contentEncoding": "base64",
"contentSchema": { "required": ["foo"], "properties": { "foo": { "type": "string" } } }
"contentSchema": { "type": "object", "required": ["foo"], "properties": { "foo": { "type": "string" } } }
},
"tests": [
{
Expand Down
2 changes: 1 addition & 1 deletion tests/draft2020-12/content.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"contentMediaType": "application/json",
"contentEncoding": "base64",
"contentSchema": { "required": ["foo"], "properties": { "foo": { "type": "string" } } }
"contentSchema": { "type": "object", "required": ["foo"], "properties": { "foo": { "type": "string" } } }
},
"tests": [
{
Expand Down

0 comments on commit 78c8882

Please sign in to comment.