[
  {
    "description": "minItems validation",
    "database": {
      "schemas": [
        {
          "minItems": 1,
          "extensible": true,
          "$id": "minItems_0_0"
        }
      ]
    },
    "tests": [
      {
        "description": "longer is valid",
        "data": [
          1,
          2
        ],
        "schema_id": "minItems_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "exact length is valid",
        "data": [
          1
        ],
        "schema_id": "minItems_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "too short is invalid",
        "data": [],
        "schema_id": "minItems_0_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      },
      {
        "description": "ignores non-arrays",
        "data": "",
        "schema_id": "minItems_0_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      }
    ]
  },
  {
    "description": "minItems validation with a decimal",
    "database": {
      "schemas": [
        {
          "minItems": 1,
          "extensible": true,
          "$id": "minItems_1_0"
        }
      ]
    },
    "tests": [
      {
        "description": "longer is valid",
        "data": [
          1,
          2
        ],
        "schema_id": "minItems_1_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      },
      {
        "description": "too short is invalid",
        "data": [],
        "schema_id": "minItems_1_0",
        "action": "validate",
        "expect": {
          "success": false
        }
      }
    ]
  },
  {
    "description": "extensible: true allows extra items in minItems",
    "database": {
      "schemas": [
        {
          "minItems": 1,
          "extensible": true,
          "$id": "minItems_2_0"
        }
      ]
    },
    "tests": [
      {
        "description": "extra item counted towards minItems",
        "data": [
          1
        ],
        "schema_id": "minItems_2_0",
        "action": "validate",
        "expect": {
          "success": true
        }
      }
    ]
  }
]