615 lines
18 KiB
JSON
615 lines
18 KiB
JSON
[
|
|
{
|
|
"description": "email format",
|
|
"schema": { "format": "email" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "idn-email format",
|
|
"schema": { "format": "idn-email" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "regex format",
|
|
"schema": { "format": "regex" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "ipv4 format",
|
|
"schema": { "format": "ipv4" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "ipv6 format",
|
|
"schema": { "format": "ipv6" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "idn-hostname format",
|
|
"schema": { "format": "idn-hostname" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "hostname format",
|
|
"schema": { "format": "hostname" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "date format",
|
|
"schema": { "format": "date" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "date-time format",
|
|
"schema": { "format": "date-time" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "time format",
|
|
"schema": { "format": "time" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "json-pointer format",
|
|
"schema": { "format": "json-pointer" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "relative-json-pointer format",
|
|
"schema": { "format": "relative-json-pointer" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "iri format",
|
|
"schema": { "format": "iri" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "iri-reference format",
|
|
"schema": { "format": "iri-reference" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "uri format",
|
|
"schema": { "format": "uri" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "uri-reference format",
|
|
"schema": { "format": "uri-reference" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"description": "uri-template format",
|
|
"schema": { "format": "uri-template" },
|
|
"tests": [
|
|
{
|
|
"description": "all string formats ignore integers",
|
|
"data": 12,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore floats",
|
|
"data": 13.7,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore objects",
|
|
"data": {},
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore arrays",
|
|
"data": [],
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore booleans",
|
|
"data": false,
|
|
"valid": true
|
|
},
|
|
{
|
|
"description": "all string formats ignore nulls",
|
|
"data": null,
|
|
"valid": true
|
|
}
|
|
]
|
|
}
|
|
]
|