{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/freqblog-com/json-schema/freqblog-com-camelot-compatible-response-schema.json",
  "title": "CamelotCompatibleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/freqblog-com-utility-api-openapi.yml#/components/schemas/CamelotCompatibleResponse",
  "properties": {
    "input_camelot": {
      "type": "string",
      "title": "Input Camelot",
      "description": "Input Camelot notation as parsed."
    },
    "input_key": {
      "type": "string",
      "title": "Input Key",
      "description": "Input as a human-readable key."
    },
    "compatible": {
      "items": {
        "$ref": "#/$defs/KeyVariant"
      },
      "type": "array",
      "title": "Compatible",
      "description": "Keys that mix harmonically with the input. Always includes `same`, `relative`, `adjacent_up`, `adjacent_down`. With `extended=true` also includes `energy_boost` and `energy_drop`."
    }
  },
  "type": "object",
  "required": [
    "input_camelot",
    "input_key",
    "compatible"
  ],
  "$defs": {
    "KeyVariant": {
      "properties": {
        "camelot": {
          "type": "string",
          "title": "Camelot",
          "description": "Camelot notation, e.g. `8A`."
        },
        "open_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Open Key",
          "description": "Open Key notation, e.g. `1m`."
        },
        "key": {
          "type": "string",
          "title": "Key",
          "description": "Human-readable key, e.g. `A-Minor`."
        },
        "relation": {
          "type": "string",
          "title": "Relation",
          "description": "How this key relates to the input. One of: `same` (same key), `relative` (same number, opposite letter — minor↔major), `adjacent_up` (one step clockwise on the wheel), `adjacent_down` (one step counterclockwise), `energy_boost` (+7 same letter — common DJ key change up), `energy_drop` (-7 same letter — key change down)."
        }
      },
      "type": "object",
      "required": [
        "camelot",
        "key",
        "relation"
      ],
      "title": "KeyVariant",
      "description": "One harmonically compatible key, returned by `/key/{camelot}/compatible`."
    }
  }
}