{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/carafe/versions/draft-01.json",
  "x-lintel": {
    "source": "https://carafe.fm/schema/draft-01/bundle.schema.json",
    "sourceSha256": "bc3da622dd73016bee6efc8a3bd54cb114e4bf0e04fa6ab86060f700a0bb3ee5"
  },
  "$defs": {
    "boolean": {
      "oneOf": [
        {
          "type": "boolean"
        },
        {
          "type": "string",
          "enum": [
            "",
            "1",
            "0"
          ]
        }
      ]
    }
  },
  "allOf": [
    {
      "type": "object",
      "properties": {
        "data": {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/carafe/_shared/draft-01--data.schema.json#"
        },
        "config": {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/carafe/_shared/draft-01--config.schema.json#"
        },
        "preview": {
          "type": "string",
          "contentMediaType": "image/*",
          "contentEncoding": "base64"
        },
        "previewName": {
          "type": "string",
          "minLength": 1
        },
        "html": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "data",
        "config",
        "preview",
        "previewName",
        "html"
      ]
    },
    {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/carafe/_shared/draft-01--meta.schema.json#"
    }
  ]
}
