{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/listdrop-co/json-schema/listdrop-co-public-list-schema.json",
  "title": "PublicList",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/listdrop-co-openapi.json#/components/schemas/PublicList",
  "type": "object",
  "required": [
    "id",
    "title",
    "tags",
    "owner",
    "url",
    "markdownUrl",
    "itemCount",
    "followerCount",
    "forkCount",
    "updatedAt",
    "items"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "emoji": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "lang": {
      "type": [
        "string",
        "null"
      ],
      "description": "Detected content language (en, es) or null."
    },
    "owner": {
      "type": "object",
      "required": [
        "handle",
        "url"
      ],
      "properties": {
        "handle": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical page; cite this."
    },
    "markdownUrl": {
      "type": "string",
      "format": "uri"
    },
    "itemCount": {
      "type": "integer"
    },
    "followerCount": {
      "type": "integer"
    },
    "forkCount": {
      "type": "integer"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicListItem"
      }
    }
  },
  "$defs": {
    "PublicListItem": {
      "type": "object",
      "required": [
        "id",
        "text",
        "url",
        "note"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri",
          "description": "Link, when the item is a linked item."
        },
        "note": {
          "type": [
            "string",
            "null"
          ]
        },
        "items": {
          "type": "array",
          "description": "Sub-items (one level).",
          "items": {
            "$ref": "#/$defs/PublicListItem"
          }
        }
      }
    }
  }
}