{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/colourmemory-com/json-schema/colourmemory-com-interior-spec-request-schema.json",
  "title": "InteriorSpecRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/colourmemory-com-interior-specification-api-openapi.yml#/components/schemas/InteriorSpecRequest",
  "properties": {
    "concept": {
      "type": "string",
      "title": "Concept"
    },
    "output_format": {
      "type": "string",
      "enum": [
        "standard",
        "scene_brief"
      ],
      "title": "Output Format",
      "default": "standard"
    },
    "room_type": {
      "type": "string",
      "title": "Room Type",
      "default": "living"
    },
    "style": {
      "type": "string",
      "title": "Style",
      "default": "heritage"
    },
    "orientation": {
      "type": "string",
      "title": "Orientation",
      "default": ""
    },
    "n_colours": {
      "type": "integer",
      "title": "N Colours",
      "default": 5
    },
    "avoid": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Avoid",
      "default": []
    },
    "archive": {
      "type": "string",
      "title": "Archive",
      "default": ""
    },
    "role_plan": {
      "items": {
        "$ref": "#/$defs/InteriorRole"
      },
      "type": "array",
      "title": "Role Plan",
      "default": []
    }
  },
  "type": "object",
  "required": [
    "concept"
  ],
  "$defs": {
    "InteriorRole": {
      "properties": {
        "role": {
          "type": "string",
          "title": "Role"
        },
        "surfaces": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Surfaces",
          "default": []
        },
        "intent": {
          "type": "string",
          "title": "Intent",
          "default": ""
        },
        "target_hex": {
          "type": "string",
          "title": "Target Hex",
          "default": ""
        },
        "allow_contrast": {
          "type": "boolean",
          "title": "Allow Contrast",
          "default": false
        },
        "proportion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Proportion"
        }
      },
      "type": "object",
      "required": [
        "role"
      ],
      "title": "InteriorRole",
      "description": "One role in a room's spatial hierarchy, decided by the MODEL.\n\nThe vocabulary is deliberately open: field / architectural / ground /\njoinery / material / textile / accent / signal are all reasonable, and a\nroom may need three of them or six. What matters is that the room's\nhierarchy is decided BEFORE colours are retrieved, so retrieval can be\nasked for candidates that suit a named job on a named surface -- rather\nthan five colours being found first and somewhere to put each one invented\nafterwards."
    }
  }
}