k8s.io/kube-openapi@v0.0.0-20240228011516-70dd3763d340/pkg/validation/validate/fixtures/schemas/int-enum.json (about)

     1  [
     2    {
     3      "schema": {
     4        "type": "object",
     5        "properties": {
     6          "sizes": {
     7            "type": "object",
     8            "properties": {
     9              "first": {
    10                "type": "object",
    11                "properties": {
    12                  "count": {
    13                    "type": "integer",
    14                    "default": 3,
    15                    "enum": [3, 5, 7]
    16                  }
    17                },
    18                "required": ["count"]
    19              }
    20            },
    21            "required": ["first"]
    22          }
    23        },
    24        "required": ["sizes"]
    25      },
    26      "valid": {
    27        "sizes": {
    28          "first": {
    29            "count": 3
    30          }
    31        }
    32      },
    33      "invalid": {
    34        "sizes": {
    35          "first": {
    36            "count": 2
    37          }
    38        }
    39      }
    40    }
    41  ]