{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/svgicons-com/json-schema/svgicons-com-icon-png-export-request-schema.json",
  "title": "IconPngExportRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/svgicons-com-openapi.yml#/components/schemas/IconPngExportRequest",
  "type": "object",
  "required": [
    "iconName"
  ],
  "properties": {
    "iconName": {
      "type": "string",
      "maxLength": 120,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
    },
    "sizes": {
      "type": "array",
      "minItems": 1,
      "maxItems": 9,
      "items": {
        "type": "integer",
        "enum": [
          16,
          24,
          32,
          48,
          96,
          128,
          256,
          512,
          1024
        ]
      }
    },
    "densities": {
      "type": "array",
      "minItems": 1,
      "maxItems": 4,
      "items": {
        "type": "integer",
        "enum": [
          1,
          2,
          3,
          4
        ]
      }
    },
    "backgroundType": {
      "type": "string",
      "enum": [
        "transparent",
        "solid"
      ]
    },
    "backgroundColor": {
      "type": "string",
      "pattern": "^#[0-9a-fA-F]{6}$"
    },
    "iconColorMode": {
      "type": "string",
      "enum": [
        "preserve",
        "black",
        "white",
        "custom"
      ]
    },
    "iconColor": {
      "type": "string",
      "pattern": "^#[0-9a-fA-F]{6}$"
    },
    "padding": {
      "type": "integer",
      "minimum": 0,
      "maximum": 256
    },
    "fit": {
      "type": "string",
      "enum": [
        "contain"
      ]
    },
    "filename": {
      "type": "string",
      "maxLength": 120,
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$"
    },
    "zip": {
      "type": "boolean"
    }
  }
}