[
    {
        "description": "type checks",
        "schema": {
            "$comment": "on some architectures, some of these values may decode to strings",
            "type": "integer"
        },
        "tests": [
            {
                "description": "beyond int64 lower boundary",
                "data": -9223372036854775809,
                "valid": true
            },
            {
                "description": "int64 lower boundary",
                "data": -9223372036854775808,
                "valid": true
            },
            {
                "description": "beyond int32 lower boundary",
                "data": -2147483649,
                "valid": true
            },
            {
                "description": "int32 lower boundary",
                "data": -2147483648,
                "valid": true
            },
            {
                "description": "zero",
                "data": 0,
                "valid": true
            },
            {
                "description": "int32 upper boundary",
                "data": 2147483647,
                "valid": true
            },
            {
                "description": "beyond int32 upper boundary",
                "data": 2147483648,
                "valid": true
            },
            {
                "description": "int64 upper boundary",
                "data": 9223372036854775807,
                "valid": true
            },
            {
                "description": "beyond int64 upper boundary",
                "data": 9223372036854775808,
                "valid": true
            }
        ]
    },
    {
        "description": "int32 format",
        "schema": {
            "$schema": "https://spec.openapis.org/oas/3.2/dialect/latest",
            "format": "int32"
        },
        "tests": [
            {
                "description": "string",
                "data": "hello",
                "valid": true
            },
            {
                "description": "beyond lower boundary",
                "data": -2147483649,
                "valid": false
            },
            {
                "description": "lower boundary",
                "data": -2147483648,
                "valid": true
            },
            {
                "description": "zero",
                "data": 0,
                "valid": true
            },
            {
                "description": "upper boundary",
                "data": 2147483647,
                "valid": true
            },
            {
                "description": "beyond upper boundary",
                "data": 2147483648,
                "valid": false
            },
            {
                "description": "not an integer",
                "data": 0.1,
                "valid": false
            }
        ]
    },
    {
        "description": "int64 format",
        "schema": {
            "$schema": "https://spec.openapis.org/oas/3.2/dialect/latest",
            "format": "int64"
        },
        "tests": [
            {
                "description": "string",
                "data": "hello",
                "valid": true
            },
            {
                "description": "beyond lower boundary",
                "data": -9223372036854775809,
                "valid": false
            },
            {
                "description": "lower boundary",
                "data": -9223372036854775808,
                "valid": true
            },
            {
                "description": "zero",
                "data": 0,
                "valid": true
            },
            {
                "description": "upper boundary",
                "data": 9223372036854775807,
                "valid": true
            },
            {
                "description": "beyond upper boundary",
                "data": 9223372036854775808,
                "valid": false
            },
            {
                "description": "not an integer",
                "data": 0.1,
                "valid": false
            }
        ]
    },
    {
        "description": "float format",
        "schema": {
            "$schema": "https://spec.openapis.org/oas/3.2/dialect/latest",
            "format": "float"
        },
        "tests": [
            {
                "description": "string",
                "data": "hello",
                "valid": true
            },
            {
                "description": "beyond int32 lower boundary",
                "data": -2147483649,
                "valid": true
            },
            {
                "description": "int32 lower boundary",
                "data": -2147483648,
                "valid": true
            },
            {
                "description": "zero",
                "data": 0,
                "valid": true
            },
            {
                "description": "π",
                "data": 3.14159265358979,
                "valid": true
            },
            {
                "description": "int32 upper boundary",
                "data": 2147483647,
                "valid": true
            },
            {
                "description": "beyond int32 upper boundary",
                "data": 2147483648,
                "valid": true
            }
        ]
    },
    {
        "description": "double format",
        "schema": {
            "$schema": "https://spec.openapis.org/oas/3.2/dialect/latest",
            "format": "double"
        },
        "tests": [
            {
                "description": "string",
                "data": "hello",
                "valid": true
            },
            {
                "description": "beyond int32 lower boundary",
                "data": -2147483649,
                "valid": true
            },
            {
                "description": "int32 lower boundary",
                "data": -2147483648,
                "valid": true
            },
            {
                "description": "zero",
                "data": 0,
                "valid": true
            },
            {
                "description": "π",
                "data": 3.14159265358979,
                "valid": true
            },
            {
                "description": "int32 upper boundary",
                "data": 2147483647,
                "valid": true
            },
            {
                "description": "beyond int32 upper boundary",
                "data": 2147483648,
                "valid": true
            }
        ]
    },
    {
        "description": "password format",
        "schema": {
            "$schema": "https://spec.openapis.org/oas/3.2/dialect/latest",
            "format": "password"
        },
        "tests": [
            {
                "description": "number",
                "data": 123,
                "valid": true
            },
            {
                "description": "a string",
                "data": "hunter2",
                "valid": true
            }
        ]
    },
    {
        "description": "media-range format",
        "schema": {
            "$schema": "https://spec.openapis.org/oas/3.2/dialect/latest",
            "format": "media-range"
        },
        "tests": [
            {
                "description": "full wildcard",
                "data": "*/*",
                "valid": true
            },
            {
                "description": "partial wildcard",
                "data": "text/*",
                "valid": true
            },
            {
                "description": "standard type and subtype",
                "data": "text/plain",
                "valid": true
            },
            {
                "description": "standard with parameter",
                "data": "text/plain; charset=UTF-8",
                "valid": true
            },
            {
                "description": "standard with two parameters",
                "data": "audio/PCMU;rate=44100;channels=2;q=0.9",
                "valid": true
            },
            {
                "description": "invalid character in type",
                "data": "te]xt/plain",
                "valid": false
            },
            {
                "description": "invalid character in subtype",
                "data": "text/pl]ain",
                "valid": false
            },
            {
                "description": "parameter with quoted string and backslash",
                "data": "text/plain; charset=\"UTF\\x5C-8\"",
                "valid": true
            },
            {
                "description": "parameter with structured suffix and parameter",
                "data": "application/openapi+json; schema=\"https://example.com/myschema/v1\"",
                "valid": true
            }
        ]
    }
]
