{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pagehub-dev/json-schema/pagehub-dev-library-component-schema.json",
  "title": "LibraryComponent",
  "description": "A block in the component library. A block is its Liquid `source`.",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pagehub-dev-openapi.json#/components/schemas/LibraryComponent",
  "type": "object",
  "properties": {
    "_id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "visual": {
      "type": "string"
    },
    "category": {
      "type": "string"
    },
    "subcategory": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "styles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "preset": {
      "type": "string"
    },
    "group": {
      "type": "string"
    },
    "blockType": {
      "type": "string"
    },
    "source": {
      "type": "string",
      "description": "The block's Liquid (omitted from lists)."
    },
    "isPublic": {
      "type": "boolean"
    },
    "isFeatured": {
      "type": "boolean"
    },
    "isCategoryPreview": {
      "type": "boolean"
    },
    "likes": {
      "type": "integer"
    },
    "uses": {
      "type": "integer"
    },
    "version": {
      "type": "integer"
    },
    "author": {
      "type": "string"
    },
    "tenant": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "_id",
    "slug",
    "name"
  ],
  "additionalProperties": true
}