{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knoxcall/json-schema/knoxcall-environment-schema.json",
  "title": "Environment",
  "description": "A deployment environment used to scope route configurations.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knoxcall-environments-api-openapi.yml#/components/schemas/Environment",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string",
      "description": "Machine-readable name (lowercase, hyphens, underscores only)."
    },
    "display_name": {
      "type": "string",
      "description": "Human-readable display name."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional description."
    },
    "color": {
      "type": "string",
      "description": "Hex color code for UI display. Exactly six hex digits with a leading '#'.",
      "pattern": "^#[0-9a-fA-F]{6}$"
    },
    "is_default": {
      "type": "boolean",
      "description": "Whether this is the default environment."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}