{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "/modules/files.json",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "files",
      "description": "Copy files to your image at build time\nhttps://blue-build.org/reference/modules/files/"
    },
    "no-cache": {
      "type": "boolean",
      "default": false,
      "description": "Whether to disabling caching for this layer.\nhttps://blue-build.org/reference/module/#no-cache-optional"
    },
    "files": {
      "anyOf": [
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RecordString"
          }
        },
        {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "source": {
                "type": "string"
              },
              "destination": {
                "type": "string"
              }
            },
            "required": [
              "source",
              "destination"
            ]
          }
        }
      ],
      "description": "List of files / folders to copy."
    }
  },
  "required": [
    "type",
    "files"
  ],
  "additionalProperties": false,
  "$defs": {
    "RecordString": {
      "type": "object",
      "properties": {},
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}