{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/snyk/main/json-schema/snyk-education-resource-extended-schema.json",
  "title": "EducationResourceExtended",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snyk-catalog-resource-api-openapi.yml#/components/schemas/EducationResourceExtended",
  "properties": {
    "attributes": {
      "properties": {
        "author": {
          "type": "string"
        },
        "date_published": {
          "format": "date",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "education_content_category": {
          "enum": [
            "security education",
            "product training"
          ],
          "type": "string"
        },
        "estimated_duration": {
          "type": [
            "number",
            "null"
          ]
        },
        "image": {
          "type": "string"
        },
        "lesson_ids": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "seo_title": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "tags": {
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "type": "array"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "description",
        "url",
        "slug",
        "image",
        "education_content_category",
        "tags"
      ],
      "type": "object"
    },
    "id": {
      "format": "uuid",
      "type": "string"
    },
    "type": {
      "enum": [
        "lesson",
        "learning_path"
      ],
      "type": "string"
    }
  },
  "required": [
    "id",
    "type",
    "attributes"
  ],
  "type": "object",
  "$defs": {
    "Tag": {
      "properties": {
        "tag_type": {
          "description": "The classification type for this tag. Possible values: ecosystem - programming language or platform (e.g. java, python, javascript, golang, cpp, csharp, kubernetes, docker, aiml, rust, ruby, swift, general). topic - security or product training topic (freeform string). cwe - Common Weakness Enumeration identifier (format: CWE-{id}, e.g. CWE-79). cve - Common Vulnerabilities and Exposures identifier (format: CVE-{year}-{id}, e.g. CVE-2021-44228). snyk_vuln_id - Snyk vulnerability rule identifier (format: SNYK-{LANG}-{PKG}-{ID}, e.g. SNYK-JAVA-ORGAPACHELOGGINGLOG4J-2314720).",
          "type": "string"
        },
        "tag_values": {
          "description": "Array of values associated with this tag type. Values follow the format described by the corresponding tag_type.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "required": [
        "tag_type",
        "tag_values"
      ],
      "type": "object"
    }
  }
}