{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe-captivate/json-schema/adobe-captivate-learning-object-response-schema.json",
  "title": "LearningObjectResponse",
  "description": "Single learning object response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-captivate-learning-objects-api-openapi.yml#/components/schemas/LearningObjectResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/LearningObject"
    },
    "included": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "$defs": {
    "LearningObject": {
      "type": "object",
      "description": "A learning object representing a course, learning program, certification, or job aid in the Learning Manager system",
      "properties": {
        "id": {
          "type": "string",
          "description": "Unique identifier for the learning object"
        },
        "type": {
          "type": "string",
          "description": "JSON:API resource type",
          "const": "learningObject"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "authorNames": {
              "type": "array",
              "description": "Names of the content authors",
              "items": {
                "type": "string"
              }
            },
            "dateCreated": {
              "type": "string",
              "format": "date-time",
              "description": "Timestamp when the learning object was created"
            },
            "datePublished": {
              "type": "string",
              "format": "date-time",
              "description": "Timestamp when the learning object was published"
            },
            "dateUpdated": {
              "type": "string",
              "format": "date-time",
              "description": "Timestamp of the last update"
            },
            "duration": {
              "type": "integer",
              "description": "Estimated duration to complete in seconds"
            },
            "effectiveModifiedDate": {
              "type": "string",
              "format": "date-time",
              "description": "Effective modification date"
            },
            "enrollmentType": {
              "type": "string",
              "description": "How users can enroll in this learning object",
              "enum": [
                "Self Enrolled",
                "Manager Nominated",
                "Admin Enrolled"
              ]
            },
            "imageUrl": {
              "type": "string",
              "format": "uri",
              "description": "URL of the learning object thumbnail image"
            },
            "loFormat": {
              "type": "string",
              "description": "Content delivery format",
              "enum": [
                "Self Paced",
                "Blended",
                "Classroom",
                "Virtual Classroom",
                "Activity"
              ]
            },
            "loType": {
              "type": "string",
              "description": "Type of learning object",
              "enum": [
                "course",
                "learningProgram",
                "certification",
                "jobAid"
              ]
            },
            "localizedMetadata": {
              "type": "array",
              "description": "Metadata in different locales",
              "items": {
                "$ref": "#/$defs/LocalizedMetadata"
              }
            },
            "state": {
              "type": "string",
              "description": "Current state of the learning object",
              "enum": [
                "Active",
                "Retired",
                "Published",
                "Draft"
              ]
            },
            "tags": {
              "type": "array",
              "description": "Tags associated with the learning object",
              "items": {
                "type": "string"
              }
            },
            "unenrollmentAllowed": {
              "type": "boolean",
              "description": "Whether learners can self-unenroll"
            }
          }
        },
        "relationships": {
          "type": "object",
          "properties": {
            "instances": {
              "$ref": "#/$defs/Relationship"
            },
            "skills": {
              "$ref": "#/$defs/Relationship"
            },
            "prerequisiteLOs": {
              "$ref": "#/$defs/Relationship"
            },
            "subLOs": {
              "$ref": "#/$defs/Relationship"
            },
            "authors": {
              "$ref": "#/$defs/Relationship"
            },
            "catalog": {
              "$ref": "#/$defs/Relationship"
            }
          }
        }
      }
    },
    "LocalizedMetadata": {
      "type": "object",
      "description": "Metadata for a learning object in a specific locale",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description in the specified locale"
        },
        "locale": {
          "type": "string",
          "description": "The locale code (e.g. en-US, fr-FR)"
        },
        "name": {
          "type": "string",
          "description": "Name in the specified locale"
        },
        "overview": {
          "type": "string",
          "description": "Overview or summary text"
        },
        "richTextOverview": {
          "type": "string",
          "description": "Rich text (HTML) overview content"
        }
      }
    },
    "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"
        }
      }
    }
  }
}