[ { "description": "validation of e-mail addresses", "schema": {"format": "email"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of IP addresses", "schema": {"format": "ip-address"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of IPv6 addresses", "schema": {"format": "ipv6"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of hostnames", "schema": {"format": "host-name"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of date-time strings", "schema": {"format": "date-time"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of regular expressions", "schema": {"format": "regex"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of date strings", "schema": {"format": "date"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of time strings", "schema": {"format": "time"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of CSS colors", "schema": {"format": "color"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] }, { "description": "validation of URIs", "schema": {"format": "uri"}, "tests": [ { "description": "ignores integers", "data": 12, "valid": true }, { "description": "ignores floats", "data": 13.7, "valid": true }, { "description": "ignores objects", "data": {}, "valid": true }, { "description": "ignores arrays", "data": [], "valid": true }, { "description": "ignores booleans", "data": false, "valid": true }, { "description": "ignores null", "data": null, "valid": true } ] } ]