{
  "description": "FeatureFlag is the Schema for the featureflags API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "FeatureFlagSpec defines the desired state of FeatureFlag",
      "properties": {
        "flagSpec": {
          "description": "FlagSpec is the structured representation of the feature flag specification",
          "properties": {
            "$evaluators": {
              "type": "object",
              "x-kubernetes-preserve-unknown-fields": true
            },
            "flags": {
              "additionalProperties": {
                "properties": {
                  "defaultVariant": {
                    "type": "string"
                  },
                  "state": {
                    "enum": [
                      "ENABLED",
                      "DISABLED"
                    ],
                    "type": "string"
                  },
                  "targeting": {
                    "description": "Targeting is the json targeting rule",
                    "type": "object",
                    "x-kubernetes-preserve-unknown-fields": true
                  },
                  "variants": {
                    "type": "object",
                    "x-kubernetes-preserve-unknown-fields": true
                  }
                },
                "required": [
                  "defaultVariant",
                  "state",
                  "variants"
                ],
                "type": "object",
                "additionalProperties": false
              },
              "type": "object"
            }
          },
          "required": [
            "flags"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "FeatureFlagStatus defines the observed state of FeatureFlag",
      "type": "object"
    }
  },
  "type": "object"
}
