{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/slideforge-dev/json-schema/slideforge-dev-catalog-response-schema.json",
  "title": "CatalogResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/slideforge-dev-catalog-api-openapi.yml#/components/schemas/CatalogResponse",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/CatalogItem"
      },
      "type": "array",
      "title": "Items"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "segments": {
      "items": {
        "$ref": "#/$defs/Facet"
      },
      "type": "array",
      "title": "Segments"
    },
    "use_cases": {
      "items": {
        "$ref": "#/$defs/Facet"
      },
      "type": "array",
      "title": "Use Cases"
    },
    "families": {
      "items": {
        "$ref": "#/$defs/Facet"
      },
      "type": "array",
      "title": "Families"
    }
  },
  "type": "object",
  "required": [
    "items",
    "count",
    "segments",
    "use_cases",
    "families"
  ],
  "$defs": {
    "CatalogItem": {
      "properties": {
        "slug": {
          "type": "string",
          "title": "Slug"
        },
        "layer": {
          "type": "string",
          "title": "Layer"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "family": {
          "type": "string",
          "title": "Family"
        },
        "family_label": {
          "type": "string",
          "title": "Family Label"
        },
        "variant": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Variant"
        },
        "variant_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Variant Label"
        },
        "segments": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Segments"
        },
        "use_cases": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Use Cases"
        },
        "blurb": {
          "type": "string",
          "title": "Blurb"
        },
        "preview_url": {
          "type": "string",
          "title": "Preview Url"
        },
        "render_ready": {
          "type": "boolean",
          "title": "Render Ready",
          "default": true
        }
      },
      "type": "object",
      "required": [
        "slug",
        "layer",
        "title",
        "family",
        "family_label",
        "segments",
        "use_cases",
        "blurb",
        "preview_url"
      ],
      "title": "CatalogItem"
    },
    "Facet": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        }
      },
      "type": "object",
      "required": [
        "id",
        "label",
        "count"
      ],
      "title": "Facet"
    }
  }
}