{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aisle-wedding/json-schema/aisle-wedding-song-request-list-schema.json",
  "title": "SongRequestList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aisle-wedding-guest-content-api-openapi.yml#/components/schemas/SongRequestList",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data",
    "has_more",
    "next_cursor"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicSongRequest"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "$defs": {
    "PublicSongRequest": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "guest_id",
        "title",
        "artist",
        "spotify_track_id",
        "album_art_url",
        "preview_url",
        "vote_count",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^sng_.+$"
        },
        "guest_id": {
          "type": "string",
          "pattern": "^gst_.+$"
        },
        "title": {
          "type": "string"
        },
        "artist": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "spotify_track_id": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "album_art_url": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "preview_url": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "vote_count": {
          "type": "integer"
        },
        "created_at": {
          "$ref": "#/$defs/Timestamp"
        }
      }
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time",
      "description": "An RFC 3339 UTC timestamp with milliseconds."
    }
  }
}