{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lrcmux/json-schema/lrcmux-jsonresponse-schema.json",
  "title": "JSONResponse",
  "x-generated": "2026-10-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lrcmux-openapi.json#/components/schemas/JSONResponse",
  "additionalProperties": false,
  "properties": {
    "lines": {
      "items": {
        "$ref": "#/$defs/JSONLine"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "meta": {
      "$ref": "#/$defs/JSONMeta"
    },
    "track": {
      "$ref": "#/$defs/Track"
    }
  },
  "required": [
    "track",
    "meta",
    "lines"
  ],
  "type": "object",
  "$defs": {
    "JSONLine": {
      "additionalProperties": false,
      "properties": {
        "end": {
          "description": "in milliseconds",
          "format": "int64",
          "type": "integer"
        },
        "start": {
          "description": "in milliseconds",
          "format": "int64",
          "type": "integer"
        },
        "text": {
          "type": "string"
        },
        "words": {
          "items": {
            "$ref": "#/$defs/Word"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    },
    "JSONMeta": {
      "additionalProperties": false,
      "properties": {
        "instrumental": {
          "description": "Whether the track has no lyrics",
          "type": "boolean"
        },
        "level": {
          "description": "Sync level of the returned lyrics",
          "enum": [
            "word",
            "line",
            "none"
          ],
          "type": "string"
        },
        "source": {
          "$ref": "#/$defs/Source",
          "description": "Provider that returned the result"
        }
      },
      "required": [
        "level"
      ],
      "type": "object"
    },
    "Source": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "type": "object"
    },
    "Track": {
      "additionalProperties": false,
      "properties": {
        "album": {
          "type": "string"
        },
        "artist": {
          "type": "string"
        },
        "cover": {
          "$ref": "#/$defs/TrackCover"
        },
        "duration": {
          "format": "int64",
          "type": "integer"
        },
        "isrc": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "cover",
        "isrc",
        "title",
        "artist",
        "album",
        "duration"
      ],
      "type": "object"
    },
    "TrackCover": {
      "additionalProperties": false,
      "properties": {
        "big": {
          "type": "string"
        },
        "medium": {
          "type": "string"
        },
        "small": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Word": {
      "additionalProperties": false,
      "properties": {
        "end": {
          "description": "in milliseconds",
          "format": "int64",
          "type": "integer"
        },
        "start": {
          "description": "in milliseconds",
          "format": "int64",
          "type": "integer"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "text",
        "start",
        "end"
      ],
      "type": "object"
    }
  }
}