{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FlagInput",
  "title": "FlagInput",
  "type": "object",
  "description": "Input for creating or updating a flag",
  "properties": {
    "key": {
      "type": "string",
      "description": "Unique key for the flag"
    },
    "name": {
      "type": "string",
      "description": "Human-readable name of the flag"
    },
    "description": {
      "type": "string",
      "description": "Description of the flag purpose"
    },
    "variables": {
      "type": "array",
      "description": "List of variables associated with this flag",
      "items": {
        "$ref": "#/components/schemas/VariableInput"
      }
    },
    "variations": {
      "type": "array",
      "description": "List of variations for this flag",
      "items": {
        "$ref": "#/components/schemas/FlagVariationInput"
      }
    }
  }
}