...

Text file src/github.com/go-openapi/validate/fixtures/jsonschema_suite/minimum.json

Documentation: github.com/go-openapi/validate/fixtures/jsonschema_suite

     1[
     2    {
     3        "description": "minimum validation",
     4        "schema": {"minimum": 1.1},
     5        "tests": [
     6            {
     7                "description": "above the minimum is valid",
     8                "data": 2.6,
     9                "valid": true
    10            },
    11            {
    12                "description": "boundary point is valid",
    13                "data": 1.1,
    14                "valid": true
    15            },
    16            {
    17                "description": "below the minimum is invalid",
    18                "data": 0.6,
    19                "valid": false
    20            },
    21            {
    22                "description": "ignores non-numbers",
    23                "data": "x",
    24                "valid": true
    25            }
    26        ]
    27    },
    28    {
    29        "description": "exclusiveMinimum validation",
    30        "schema": {
    31            "minimum": 1.1,
    32            "exclusiveMinimum": true
    33        },
    34        "tests": [
    35            {
    36                "description": "above the minimum is still valid",
    37                "data": 1.2,
    38                "valid": true
    39            },
    40            {
    41                "description": "boundary point is invalid",
    42                "data": 1.1,
    43                "valid": false
    44            }
    45        ]
    46    }
    47]

View as plain text