{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/observeinc/json-schema/observeinc-skill-resource-schema.json",
  "title": "SkillResource",
  "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-Resource",
  "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"
    }
  },
  "$defs": {
    "ObjectId": {
      "type": "string",
      "format": "ObjectId"
    },
    "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"
        }
      }
    }
  }
}