{
  "properties": {
    "spec": {
      "additionalProperties": false,
      "properties": {
        "namespaceSelector": {
          "additionalProperties": false,
          "properties": {
            "matchExpressions": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "key": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "operator": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "values": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "matchLabels": {
              "additionalProperties": {
                "type": "string"
              },
              "type": [
                "object",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "podSelector": {
          "additionalProperties": false,
          "properties": {
            "matchExpressions": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "key": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "operator": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "values": {
                    "items": {
                      "type": "string"
                    },
                    "type": [
                      "array",
                      "null"
                    ]
                  }
                },
                "type": "object"
              },
              "type": [
                "array",
                "null"
              ]
            },
            "matchLabels": {
              "additionalProperties": {
                "type": "string"
              },
              "type": [
                "object",
                "null"
              ]
            }
          },
          "type": [
            "object",
            "null"
          ]
        },
        "rules": {
          "items": {
            "additionalProperties": false,
            "oneOf": [
              {
                "not": {
                  "anyOf": [
                    {
                      "required": [
                        "ruleID"
                      ]
                    },
                    {
                      "required": [
                        "ruleName"
                      ]
                    }
                  ]
                },
                "required": [
                  "ruleTags"
                ]
              },
              {
                "not": {
                  "anyOf": [
                    {
                      "required": [
                        "ruleTags"
                      ]
                    },
                    {
                      "required": [
                        "ruleName"
                      ]
                    }
                  ]
                },
                "required": [
                  "ruleID"
                ]
              },
              {
                "not": {
                  "anyOf": [
                    {
                      "required": [
                        "ruleTags"
                      ]
                    },
                    {
                      "required": [
                        "ruleID"
                      ]
                    }
                  ]
                },
                "required": [
                  "ruleName"
                ]
              }
            ],
            "properties": {
              "parameters": {
                "additionalProperties": true,
                "type": [
                  "object",
                  "null"
                ]
              },
              "ruleID": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "ruleName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "ruleTags": {
                "items": {
                  "type": "string"
                },
                "type": [
                  "array",
                  "null"
                ]
              },
              "severity": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}