{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/yungle-co/json-schema/yungle-co-collection-schema.json",
  "title": "Collection",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/yungle-co-openapi.json#/components/schemas/Collection",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "visibility": {
      "type": "string",
      "description": "Currently one of: `private`, `public`, `password`. Treat unknown values as unknown, not as an error."
    },
    "url": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "description": "The secret link. Treat it like a password."
    },
    "customLink": {
      "type": "boolean",
      "description": "Whether the readable `<your-domain>/<slug>` address is on."
    },
    "sizeBytes": {
      "type": "integer",
      "minimum": 0
    },
    "fileCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Present on the single-collection read."
    },
    "coverFileId": {
      "type": [
        "string",
        "null"
      ]
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "description": "Null on a paid plan: nothing expires."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "title",
    "slug",
    "description",
    "visibility",
    "url",
    "customLink",
    "sizeBytes",
    "coverFileId",
    "expiresAt",
    "createdAt",
    "updatedAt"
  ]
}