{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A single entry in the dream diary: a real dream, written down, paired with an image generated from it.",
      "key": "any",
      "record": {
        "properties": {
          "alt": {
            "description": "Alt text for the image, written the way the diary would describe it.",
            "maxLength": 5120,
            "type": "string"
          },
          "aspectHeight": {
            "description": "Height component of the image aspect ratio.",
            "minimum": 1,
            "type": "integer"
          },
          "aspectWidth": {
            "description": "Width component of the image aspect ratio.",
            "minimum": 1,
            "type": "integer"
          },
          "createdAt": {
            "description": "When this entry was logged.",
            "format": "datetime",
            "type": "string"
          },
          "date": {
            "description": "The date the dream was dreamed, as YYYY-MM-DD.",
            "maxLength": 10,
            "minLength": 10,
            "type": "string"
          },
          "fragment": {
            "description": "One line the dream said, shown in the serif voice.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "image": {
            "accept": [
              "image/*"
            ],
            "description": "The generated dream image.",
            "maxSize": 5000000,
            "type": "blob"
          },
          "story": {
            "description": "The whole story, one item per paragraph.",
            "items": {
              "maxLength": 20480,
              "type": "string"
            },
            "type": "array"
          },
          "title": {
            "description": "The dream's title.",
            "maxGraphemes": 128,
            "maxLength": 1280,
            "type": "string"
          }
        },
        "required": [
          "title",
          "date",
          "image",
          "aspectWidth",
          "aspectHeight",
          "fragment",
          "alt",
          "story",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "me.ricciuti.dreams.dream",
  "lexicon": 1
}
