{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/svgicons-com/json-schema/svgicons-com-icon-search-response-schema.json",
  "title": "IconSearchResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/svgicons-com-openapi.yml#/components/schemas/IconSearchResponse",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Icon"
      }
    },
    "meta": {
      "type": "object",
      "required": [
        "query",
        "limit",
        "offset",
        "page",
        "nextOffset",
        "hasMore"
      ],
      "properties": {
        "query": {
          "type": "string"
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "iconSetPrefix": {
          "type": [
            "string",
            "null"
          ]
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "page": {
          "type": "integer"
        },
        "nextOffset": {
          "type": "integer"
        },
        "hasMore": {
          "type": "boolean"
        }
      }
    }
  },
  "$defs": {
    "Icon": {
      "type": "object",
      "required": [
        "id",
        "name",
        "slug",
        "width",
        "height",
        "viewBox",
        "pageUrl",
        "svgUrl",
        "iconSet"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "viewBox": {
          "type": "string"
        },
        "pageUrl": {
          "type": "string",
          "format": "uri"
        },
        "svgUrl": {
          "type": "string",
          "format": "uri"
        },
        "iconSet": {
          "$ref": "#/$defs/IconSet"
        }
      }
    },
    "IconSet": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "prefix": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "total": {
          "type": "integer"
        },
        "author": {
          "type": [
            "string",
            "null"
          ]
        },
        "authorUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "license": {
          "type": [
            "string",
            "null"
          ]
        },
        "licenseUrl": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "spdx": {
          "type": [
            "string",
            "null"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "statusBadge": {
          "type": [
            "string",
            "null"
          ]
        },
        "pageUrl": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}