{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/romm/json-schema/romm-music-page-music-track-schema-schema.json",
  "title": "MusicPage[MusicTrackSchema]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/romm-music-api-openapi.yml#/components/schemas/MusicPage_MusicTrackSchema_",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/MusicTrackSchema"
      },
      "type": "array",
      "title": "Items"
    },
    "total": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Total"
    },
    "limit": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Limit"
    },
    "offset": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Offset"
    }
  },
  "type": "object",
  "required": [
    "items",
    "total",
    "limit",
    "offset"
  ],
  "$defs": {
    "MusicTrackSchema": {
      "properties": {
        "rom_file_id": {
          "type": "integer",
          "title": "Rom File Id"
        },
        "rom_id": {
          "type": "integer",
          "title": "Rom Id"
        },
        "file_name": {
          "type": "string",
          "title": "File Name"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "artist": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Artist"
        },
        "album": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Album"
        },
        "genre": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Genre"
        },
        "year": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Year"
        },
        "track": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Track"
        },
        "disc": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Disc"
        },
        "duration_seconds": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Duration Seconds"
        },
        "has_embedded_cover": {
          "type": "boolean",
          "title": "Has Embedded Cover",
          "default": false
        },
        "is_favorite": {
          "type": "boolean",
          "title": "Is Favorite",
          "default": false
        },
        "game_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Game Name"
        },
        "game_genres": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Game Genres"
        },
        "added_at": {
          "type": "string",
          "title": "Added At"
        },
        "platform_id": {
          "type": "integer",
          "title": "Platform Id"
        },
        "platform_slug": {
          "type": "string",
          "title": "Platform Slug"
        },
        "platform_name": {
          "type": "string",
          "title": "Platform Name"
        },
        "stream_url": {
          "type": "string",
          "title": "Stream Url"
        },
        "cover_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Cover Url"
        },
        "game_cover_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Game Cover Url"
        }
      },
      "type": "object",
      "required": [
        "rom_file_id",
        "rom_id",
        "file_name",
        "added_at",
        "platform_id",
        "platform_slug",
        "platform_name",
        "stream_url"
      ],
      "title": "MusicTrackSchema"
    }
  }
}