{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/web3icon-xyz/json-schema/web3icon-xyz-public-catalog-schema.json",
  "title": "PublicCatalog",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/web3icon-xyz-openapi.json#/components/schemas/PublicCatalog",
  "type": "object",
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "1.1"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "catalogUrl": {
      "type": "string",
      "format": "uri"
    },
    "termsUrl": {
      "type": "string",
      "format": "uri"
    },
    "license": {
      "$ref": "#/$defs/AssetLicense"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "counts": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "icons": {
          "type": "integer"
        },
        "illustrations": {
          "type": "integer"
        },
        "animations": {
          "type": "integer"
        }
      },
      "required": [
        "total",
        "icons",
        "illustrations",
        "animations"
      ]
    },
    "featured": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "usage": {
      "type": "object"
    },
    "assets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CatalogAsset"
      }
    }
  },
  "required": [
    "schemaVersion",
    "name",
    "catalogUrl",
    "termsUrl",
    "license",
    "counts",
    "featured",
    "usage",
    "assets"
  ],
  "$defs": {
    "AssetLicense": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "const": "Web3icon Free Use License"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "attribution": {
          "type": "string",
          "const": "not-required"
        },
        "redistribution": {
          "type": "string",
          "const": "prohibited"
        },
        "copyrightHolder": {
          "type": "string",
          "const": "Yuhitsuro"
        },
        "copyrightUrl": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "name",
        "url",
        "attribution",
        "redistribution",
        "copyrightHolder",
        "copyrightUrl"
      ]
    },
    "CatalogAsset": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "icon",
            "illustration",
            "animation"
          ]
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "keywords": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "detailUrl": {
          "type": "string",
          "format": "uri"
        },
        "preview": {
          "$ref": "#/$defs/CatalogPreview"
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CatalogFile"
          }
        },
        "license": {
          "$ref": "#/$defs/AssetLicense"
        },
        "apiUrl": {
          "type": "string",
          "format": "uri"
        },
        "embedUrl": {
          "type": "string",
          "format": "uri"
        },
        "usageReportUrl": {
          "type": "string",
          "format": "uri"
        },
        "markdownPreview": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "slug",
        "kind",
        "title",
        "description",
        "keywords",
        "detailUrl",
        "preview",
        "files",
        "license",
        "apiUrl",
        "embedUrl",
        "usageReportUrl",
        "markdownPreview"
      ]
    },
    "CatalogFile": {
      "type": "object",
      "properties": {
        "format": {
          "type": "string"
        },
        "mediaType": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      },
      "required": [
        "format",
        "mediaType",
        "url"
      ]
    },
    "CatalogPreview": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "mediaType": {
          "type": "string"
        },
        "animated": {
          "type": "boolean"
        },
        "alt": {
          "type": "string"
        }
      },
      "required": [
        "url",
        "mediaType",
        "animated",
        "alt"
      ]
    }
  }
}