{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/carafe/versions/draft-02.json",
  "x-lintel": {
    "source": "https://carafe.fm/schema/draft-02/bundle.schema.json",
    "sourceSha256": "b5b2f34d5cb9ef3cdf548472140457e36bcb0baa9841563d2ee219c3fa1b085b"
  },
  "allOf": [
    {
      "type": "object",
      "properties": {
        "config": {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/carafe/_shared/latest--config.schema.json#"
        },
        "data": {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/carafe/_shared/latest--data.schema.json#"
        },
        "libraries": {
          "type": "object",
          "additionalProperties": true
        },
        "preview": {
          "type": "string",
          "contentMediaType": "image/*",
          "contentEncoding": "base64",
          "errorMessage": "preview.jpg or preview.png is required"
        },
        "template": {
          "type": "string",
          "minLength": 1,
          "errorMessage": "template is required and must not be empty"
        }
      },
      "required": [
        "config",
        "data",
        "preview",
        "template"
      ]
    },
    {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/carafe/_shared/latest--meta.schema.json#"
    }
  ]
}
