{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinetune-com/json-schema/kinetune-com-song-brief-schema.json",
  "title": "SongBrief",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/kinetune-com-v1-openapi.json#/components/schemas/SongBrief",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "writing",
        "ready"
      ],
      "description": "writing: being written (the fields are null until ready)"
    },
    "theme": {
      "description": "What the song is about, in a sentence",
      "type": [
        "string",
        "null"
      ]
    },
    "tone": {
      "description": "Its register, in a few words",
      "type": [
        "string",
        "null"
      ]
    },
    "story": {
      "description": "The story or situation under the words (null for a mood piece)",
      "type": [
        "string",
        "null"
      ]
    },
    "mood_arc": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "section": {
            "type": "string"
          },
          "feeling": {
            "type": "string"
          }
        },
        "required": [
          "section",
          "feeling"
        ],
        "additionalProperties": false
      },
      "description": "How the feeling moves through it, section by section"
    },
    "setting": {
      "description": "An era, a place or a scene it evokes (null when none)",
      "type": [
        "string",
        "null"
      ]
    },
    "edited": {
      "type": "boolean",
      "description": "The user corrected it: directors read their version, and nothing replaces it until rewrite_song_brief"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "status",
    "theme",
    "tone",
    "story",
    "mood_arc",
    "setting",
    "edited",
    "updated_at"
  ],
  "additionalProperties": {}
}