...

Text file src/github.com/qri-io/jsonschema/testdata/draft6/minProperties.json

Documentation: github.com/qri-io/jsonschema/testdata/draft6

     1[
     2    {
     3        "description": "minProperties validation",
     4        "schema": {"minProperties": 1},
     5        "tests": [
     6            {
     7                "description": "longer is valid",
     8                "data": {"foo": 1, "bar": 2},
     9                "valid": true
    10            },
    11            {
    12                "description": "exact length is valid",
    13                "data": {"foo": 1},
    14                "valid": true
    15            },
    16            {
    17                "description": "too short is invalid",
    18                "data": {},
    19                "valid": false
    20            },
    21            {
    22                "description": "ignores arrays",
    23                "data": [],
    24                "valid": true
    25            },
    26            {
    27                "description": "ignores strings",
    28                "data": "",
    29                "valid": true
    30            },
    31            {
    32                "description": "ignores other non-objects",
    33                "data": 12,
    34                "valid": true
    35            }
    36        ]
    37    }
    38]

View as plain text