{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/observeinc/json-schema/observeinc-skill-list-response-schema.json",
  "title": "SkillListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/observeinc-skills-api-openapi.yml#/components/schemas/Skill-ListResponse",
  "type": "object",
  "required": [
    "skills",
    "meta"
  ],
  "properties": {
    "skills": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Skill-Resource"
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "description": "List Response Metadata",
      "type": "object",
      "required": [
        "totalCount"
      ],
      "properties": {
        "totalCount": {
          "description": "The total number of resources available, independent of pagination.\nThe API may return -1 if the total count is unknown or cannot be computed\nin reasonable time.\n",
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "ObjectId": {
      "type": "string",
      "format": "ObjectId"
    },
    "Skill-Resource": {
      "title": "SkillResource",
      "type": "object",
      "required": [
        "id",
        "label",
        "description",
        "visibility",
        "createdBy",
        "createdAt",
        "updatedBy",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "$ref": "#/$defs/ObjectId"
        },
        "label": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "content": {
          "type": "string"
        },
        "visibility": {
          "$ref": "#/$defs/Skill-Visibility"
        },
        "createdBy": {
          "$ref": "#/$defs/User"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedBy": {
          "$ref": "#/$defs/User"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "Skill-Visibility": {
      "title": "SkillVisibility",
      "type": "string",
      "enum": [
        "Listed",
        "Unlisted"
      ]
    },
    "User": {
      "title": "User",
      "type": "object",
      "required": [
        "id"
      ],
      "properties": {
        "id": {
          "title": "User Identifier",
          "$ref": "#/$defs/ObjectId"
        },
        "label": {
          "title": "User Label",
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "locale": {
          "type": "string"
        }
      }
    }
  }
}