{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe-captivate/json-schema/adobe-captivate-user-skill-list-response-schema.json",
  "title": "UserSkillListResponse",
  "description": "Paginated list of user skills",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-captivate-skills-api-openapi.yml#/components/schemas/UserSkillListResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "userSkill"
          },
          "attributes": {
            "type": "object",
            "properties": {
              "dateAchieved": {
                "type": "string",
                "format": "date-time",
                "description": "When the skill was achieved"
              },
              "pointsEarned": {
                "type": "number",
                "description": "Points earned toward this skill"
              }
            }
          },
          "relationships": {
            "type": "object",
            "properties": {
              "skill": {
                "$ref": "#/$defs/Relationship"
              },
              "skillLevel": {
                "$ref": "#/$defs/Relationship"
              }
            }
          }
        }
      }
    },
    "links": {
      "$ref": "#/$defs/PaginationLinks"
    }
  },
  "$defs": {
    "PaginationLinks": {
      "type": "object",
      "description": "Pagination links following JSON:API conventions",
      "properties": {
        "self": {
          "type": "string",
          "format": "uri",
          "description": "URL for the current page"
        },
        "next": {
          "type": "string",
          "format": "uri",
          "description": "URL for the next page"
        },
        "prev": {
          "type": "string",
          "format": "uri",
          "description": "URL for the previous page"
        }
      }
    },
    "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"
        }
      }
    }
  }
}