jspg progress
This commit is contained in:
16
tests/fixtures/optional/format/date.json
vendored
Executable file
16
tests/fixtures/optional/format/date.json
vendored
Executable file
@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"description": "validation of date strings",
|
||||
"schema": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"format": "date"
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "contains alphabets",
|
||||
"data": "yyyy-mm-dd",
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
16
tests/fixtures/optional/format/duration.json
vendored
Executable file
16
tests/fixtures/optional/format/duration.json
vendored
Executable file
@ -0,0 +1,16 @@
|
||||
[
|
||||
{
|
||||
"description": "validation of duration strings",
|
||||
"schema": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"format": "duration"
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "more than one T",
|
||||
"data": "PT1MT1S",
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
31
tests/fixtures/optional/format/email.json
vendored
Executable file
31
tests/fixtures/optional/format/email.json
vendored
Executable file
@ -0,0 +1,31 @@
|
||||
[
|
||||
{
|
||||
"description": "validation of duration strings",
|
||||
"schema": {
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"format": "email"
|
||||
},
|
||||
"tests": [
|
||||
{
|
||||
"description": "non printable character",
|
||||
"data": "a\tb@gmail.com",
|
||||
"valid": false
|
||||
},
|
||||
{
|
||||
"description": "tab ok if quoted",
|
||||
"data": "\"a\tb\"@gmail.com",
|
||||
"valid": true
|
||||
},
|
||||
{
|
||||
"description": "quote inside quoted",
|
||||
"data": "\"a\"b\"@gmail.com",
|
||||
"valid": false
|
||||
},
|
||||
{
|
||||
"description": "backslash inside quoted",
|
||||
"data": "\"a\\b\"@gmail.com",
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
23
tests/fixtures/optional/format/time.json
vendored
Executable file
23
tests/fixtures/optional/format/time.json
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
[
|
||||
{
|
||||
"description": "validation of time strings",
|
||||
"schema": { "format": "time" },
|
||||
"tests": [
|
||||
{
|
||||
"description": "contains alphabets",
|
||||
"data": "ab:cd:efZ",
|
||||
"valid": false
|
||||
},
|
||||
{
|
||||
"description": "no digit in second fraction",
|
||||
"data": "23:20:50.Z",
|
||||
"valid": false
|
||||
},
|
||||
{
|
||||
"description": "alphabets in offset",
|
||||
"data": "08:30:06+ab:cd",
|
||||
"valid": false
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user