{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptodecentral-co-za/json-schema/cryptodecentral-co-za-directory-feed-schema.json",
  "title": "DirectoryFeed",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cryptodecentral-co-za-openapi.json#/components/schemas/DirectoryFeed",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "string"
    },
    "criteria_url": {
      "type": "string",
      "format": "uri",
      "description": "Badge criteria and 90-day re-check rule (added in 1.2.0)"
    },
    "disclaimer": {
      "type": "string"
    },
    "listings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DirectoryListing"
      }
    }
  },
  "$defs": {
    "DirectoryListing": {
      "type": "object",
      "required": [
        "id",
        "name",
        "category",
        "url",
        "description",
        "sponsored",
        "tags",
        "verification",
        "last_reviewed",
        "risk_notes",
        "license"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "description": {
          "type": "string"
        },
        "sponsored": {
          "type": "boolean"
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "verification": {
          "type": "string",
          "enum": [
            "listed",
            "reviewed",
            "questionable",
            "withdrawn"
          ]
        },
        "last_reviewed": {
          "type": [
            "string",
            "null"
          ],
          "format": "date"
        },
        "risk_notes": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          ]
        },
        "license": {
          "type": [
            "string",
            "null"
          ]
        },
        "related_pillars": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}