[
  {
    "description": "maxItems validation",
    "database": {
      "schemas": [
        {
          "maxItems": 2,
          "extensible": true,
          "$id": "maxItems_0_0"
        }
      ]
    },
    "tests": [
      {
        "description": "shorter is valid",
        "data": [
          1
        ],
        "schema_id": "maxItems_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "exact length is valid",
        "data": [
          1,
          2
        ],
        "schema_id": "maxItems_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "too long is invalid",
        "data": [
          1,
          2,
          3
        ],
        "schema_id": "maxItems_0_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      },
      {
        "description": "ignores non-arrays",
        "data": "foobar",
        "schema_id": "maxItems_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      }
    ]
  },
  {
    "description": "maxItems validation with a decimal",
    "database": {
      "schemas": [
        {
          "maxItems": 2,
          "extensible": true,
          "$id": "maxItems_1_0"
        }
      ]
    },
    "tests": [
      {
        "description": "shorter is valid",
        "data": [
          1
        ],
        "schema_id": "maxItems_1_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "too long is invalid",
        "data": [
          1,
          2,
          3
        ],
        "schema_id": "maxItems_1_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      }
    ]
  },
  {
    "description": "extensible: true allows extra items in maxItems (but counted)",
    "database": {
      "schemas": [
        {
          "maxItems": 2,
          "extensible": true,
          "$id": "maxItems_2_0"
        }
      ]
    },
    "tests": [
      {
        "description": "extra item counted towards maxItems",
        "data": [
          1,
          2,
          3
        ],
        "schema_id": "maxItems_2_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      }
    ]
  }
]