{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--prune.json",
  "description": "File containing definitions and configuration for prune plugin",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/plugin/prune.json",
    "sourceSha256": "6d60d75b6922626bb1634f8c1d84844557289a09992340f1235a407fc41d3a41"
  },
  "type": "object",
  "id": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/plugin/prune.json",
  "schema": "https://json-schema.org/draft-07/schema#",
  "Prune": {
    "description": "Configuration for prune plugin. Please make sure to install the [serverless-prune-plugin](https://www.serverless.com/plugins/serverless-prune-plugin) package and add to plugins",
    "type": "object",
    "properties": {
      "automatic": {
        "type": "boolean",
        "description": "Weather to prune automatically on deploy or not"
      },
      "number": {
        "type": "number",
        "description": "The number of versions to keep.  It is possible to set number to 0. In this case, the plugin will delete all the function versions (except $LATEST); this is useful when disabling function versioning for an already-deployed stack."
      },
      "includeLayers": {
        "type": "boolean",
        "description": "Whether to prune versions of layers or not"
      }
    },
    "additionalProperties": false
  },
  "additionalProperties": false,
  "required": [
    "Prune"
  ]
}
