Skip to content

Second attempt at adding test output #269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
618 changes: 532 additions & 86 deletions tests/draft2019-06/additionalItems.json

Large diffs are not rendered by default.

952 changes: 823 additions & 129 deletions tests/draft2019-06/additionalProperties.json

Large diffs are not rendered by default.

1,875 changes: 1,660 additions & 215 deletions tests/draft2019-06/allOf.json

Large diffs are not rendered by default.

1,394 changes: 1,233 additions & 161 deletions tests/draft2019-06/anyOf.json

Large diffs are not rendered by default.

539 changes: 436 additions & 103 deletions tests/draft2019-06/boolean_schema.json

Large diffs are not rendered by default.

505 changes: 420 additions & 85 deletions tests/draft2019-06/const.json

Large diffs are not rendered by default.

1,007 changes: 913 additions & 94 deletions tests/draft2019-06/contains.json

Large diffs are not rendered by default.

238 changes: 191 additions & 47 deletions tests/draft2019-06/default.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,193 @@
[
{
"description": "invalid type for default",
"schema": {
"properties": {
"foo": {
"type": "integer",
"default": []
}
}
},
"tests": [
{
"description": "valid when property is specified",
"data": {"foo": 13},
"valid": true
},
{
"description": "still valid when the invalid default is used",
"data": {},
"valid": true
}
]
{
"description": "invalid type for default",
"schema": {"properties": {"foo": {"type": "integer", "default": []}}},
"tests": [
{
"description": "valid when property is specified",
"data": {"foo": 13},
"valid": true,
"output": {
"basic": {
"valid": true,
"keywordLocation": "#/properties/foo/default",
"instanceLocation": "#/foo",
"keyword": "default"
},
"detailed": {
"valid": true,
"keywordLocation": "#/properties/foo/default",
"instanceLocation": "#/foo",
"keyword": "default"
},
"verbose": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties",
"instanceLocation": "#",
"keyword": "properties",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties/foo",
"instanceLocation": "#/foo",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties/foo/type",
"instanceLocation": "#/foo",
"keyword": "type"
},
{
"valid": true,
"keywordLocation": "#/properties/foo/default",
"instanceLocation": "#/foo",
"keyword": "default"
}
]
}
]
}
]
}
}
},
{
"description": "still valid when the invalid default is used",
"data": {},
"valid": true,
"output": {
"basic": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#"
},
"detailed": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#"
},
"verbose": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties",
"instanceLocation": "#",
"keyword": "properties"
}
]
}
}
}
]
},
{
"description": "invalid string value for default",
"schema": {
"properties": {
"bar": {"type": "string", "minLength": 4, "default": "bad"}
}
},
{
"description": "invalid string value for default",
"schema": {
"properties": {
"bar": {
"type": "string",
"minLength": 4,
"default": "bad"
}
}
},
"tests": [
{
"description": "valid when property is specified",
"data": {"bar": "good"},
"valid": true
},
{
"description": "still valid when the invalid default is used",
"data": {},
"valid": true
}
]
}
]
"tests": [
{
"description": "valid when property is specified",
"data": {"bar": "good"},
"valid": true,
"output": {
"basic": {
"valid": true,
"keywordLocation": "#/properties/bar/default",
"instanceLocation": "#/bar",
"keyword": "default",
"annotation": "bad"
},
"detailed": {
"valid": true,
"keywordLocation": "#/properties/bar/default",
"instanceLocation": "#/bar",
"keyword": "default",
"annotation": "bad"
},
"verbose": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties",
"instanceLocation": "#",
"keyword": "properties",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties/bar",
"instanceLocation": "#/bar",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties/bar/type",
"instanceLocation": "#/bar",
"keyword": "type"
},
{
"valid": true,
"keywordLocation": "#/properties/bar/minLength",
"instanceLocation": "#/bar",
"keyword": "minLength"
},
{
"valid": true,
"keywordLocation": "#/properties/bar/default",
"instanceLocation": "#/bar",
"keyword": "default",
"annotation": "bad"
}
]
}
]
}
]
}
}
},
{
"description": "still valid when the invalid default is used",
"data": {},
"valid": true,
"output": {
"basic": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#"
},
"detailed": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#"
},
"verbose": {
"valid": true,
"keywordLocation": "#",
"instanceLocation": "#",
"annotations": [
{
"valid": true,
"keywordLocation": "#/properties",
"instanceLocation": "#",
"keyword": "properties"
}
]
}
}
}
]
}
]
Loading