{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/imageoptimizer-json/latest.json",
  "description": "Schema for imageoptimizer.json files",
  "x-lintel": {
    "source": "https://www.schemastore.org/imageoptimizer.json",
    "sourceSha256": "cc15d7b2ddc090481c83be418537529bf2c64fdfc1869b20cf516cae0e558ab8",
    "fileMatch": [
      "imageoptimizer.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "optimizations": {
      "description": "An array of optimization rules",
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "includes"
        ],
        "properties": {
          "includes": {
            "description": "An array of globbing patterns of files/folders to include in the optimization",
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "excludes": {
            "description": "An array of globbing patterns of files/folders to exclude in the optimization",
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "default": [
              "node_modules",
              "bower_components",
              "jspm_packages"
            ]
          },
          "lossy": {
            "description": "When set to true, images are compressed a lot more but with a slight quality loss that may not be visible to the human eye.",
            "type": "boolean",
            "default": false
          }
        }
      }
    }
  },
  "id": "https://json.schemastore.org/imageoptimizer.json"
}
