[ { "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": "ipv4"}, "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": "hostname"}, "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 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 } ] } ]