{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe-captivate/json-schema/adobe-captivate-catalog-response-schema.json",
  "title": "CatalogResponse",
  "description": "Single catalog response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-captivate-catalogs-api-openapi.yml#/components/schemas/CatalogResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/Catalog"
    }
  },
  "$defs": {
    "Catalog": {
      "type": "object",
      "description": "A catalog that organizes and controls access to learning objects",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique catalog identifier"
        },
        "type": {
          "type": "string",
          "const": "catalog"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "dateCreated": {
              "type": "string",
              "format": "date-time",
              "description": "Timestamp when the catalog was created"
            },
            "dateUpdated": {
              "type": "string",
              "format": "date-time",
              "description": "Timestamp of the last update"
            },
            "description": {
              "type": "string",
              "description": "Catalog description"
            },
            "isDefault": {
              "type": "boolean",
              "description": "Whether this is the default catalog"
            },
            "isInternallySearchable": {
              "type": "boolean",
              "description": "Whether learning objects in this catalog appear in search"
            },
            "name": {
              "type": "string",
              "description": "Catalog name"
            },
            "state": {
              "type": "string",
              "description": "Catalog state",
              "enum": [
                "Enabled",
                "Disabled"
              ]
            }
          }
        },
        "relationships": {
          "type": "object",
          "properties": {
            "learningObjects": {
              "$ref": "#/$defs/Relationship"
            }
          }
        }
      }
    },
    "Relationship": {
      "type": "object",
      "description": "A JSON:API relationship object",
      "properties": {
        "data": {
          "oneOf": [
            {
              "$ref": "#/$defs/ResourceIdentifier"
            },
            {
              "type": "array",
              "items": {
                "$ref": "#/$defs/ResourceIdentifier"
              }
            }
          ]
        },
        "links": {
          "type": "object",
          "properties": {
            "related": {
              "type": "string",
              "format": "uri",
              "description": "URL to fetch the related resource"
            }
          }
        }
      }
    },
    "ResourceIdentifier": {
      "type": "object",
      "description": "JSON:API resource identifier",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource identifier"
        },
        "type": {
          "type": "string",
          "description": "Resource type name"
        }
      }
    }
  }
}