{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "description": "Schema for image sprite generation files",
  "id": "https://json.schemastore.org/sprite.json",
  "properties": {
    "customstyles": {
      "description": "Define custom CSS declarations to inject into the generated stylesheet.",
      "type": "object",
      "additionalProperties": {
        "description": "A custom CSS declaration (property: value).",
        "type": ["string", "number"]
      }
    },
    "dpi": {
      "description": "The image resolution of the generated image sprite",
      "type": "integer",
      "default": 96
    },
    "images": {
      "description": "An array of file paths relative to this document. The name must be unique.",
      "type": "object",
      "additionalProperties": {
        "description": "A source image for the sprite.",
        "type": "string"
      }
    },
    "optimize": {
      "description": "Optimizes the generated image either lossy or lossless. Requires the \"Image Optimizer\" extension for Visual Studio",
      "enum": ["lossless", "lossy", "none"],
      "default": "lossless"
    },
    "orientation": {
      "description": "The orientation of the individual images inside the generated sprite.",
      "enum": ["horizontal", "vertical"],
      "default": "vertical"
    },
    "output": {
      "description": "Output format of the generated image sprite.",
      "enum": ["png", "jpg", "gif"],
      "default": "png"
    },
    "padding": {
      "description": "The padding around each individual image in the sprite. The value is in pixels.",
      "type": "integer",
      "default": 10
    },
    "pathprefix": {
      "description": "Add any path root in front of the generated. Example: \"/images/\"",
      "type": "string",
      "default": ""
    },
    "stylesheet": {
      "description": "Define stylesheets (css, less, sass) to be generated as part of the sprite generation process.",
      "enum": ["none", "css", "less", "scss", "styl"],
      "default": "none"
    }
  },
  "required": ["images"],
  "type": "object"
}
