{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/urlhub-cloud/json-schema/urlhub-cloud-set-schema.json",
  "title": "Set",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/urlhub-cloud-openapi.yml#/components/schemas/Set",
  "type": "object",
  "properties": {
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "page": {
      "type": "string",
      "description": "The set in a browser"
    },
    "total": {
      "type": "integer",
      "description": "Links in the set"
    },
    "links": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "type": [
              "string",
              "null"
            ]
          },
          "site": {
            "type": "string"
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "error": {
            "type": "string",
            "description": "Why the link could not be read"
          },
          "preview": {
            "type": "boolean",
            "description": "false when the site does not let servers read it: the title then comes from its address"
          }
        }
      }
    }
  }
}