# me.ricciuti.dreams.dream

> Published by [paolo.ricciuti.me](https://lexicon.garden/identity/did:plc:ezyrzvz3yoglekd4j2szmiys)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ezyrzvz3yoglekd4j2szmiys/me.ricciuti.dreams.dream)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ezyrzvz3yoglekd4j2szmiys/me.ricciuti.dreams.dream/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ezyrzvz3yoglekd4j2szmiys/me.ricciuti.dreams.dream/examples)

## Definitions

### `me.ricciuti.dreams.dream`

**Type**: `record`

A single entry in the dream diary: a real dream, written down, paired with an image generated from it.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | Yes | Alt text for the image, written the way the diary would describe it. |
| `date` | `string` | Yes | The date the dream was dreamed, as YYYY-MM-DD. |
| `image` | `blob` | Yes | The generated dream image. |
| `story` | `array` | Yes | The whole story, one item per paragraph. |
| `title` | `string` | Yes | The dream's title. |
| `fragment` | `string` | Yes | One line the dream said, shown in the serif voice. |
| `createdAt` | `string` (datetime) | Yes | When this entry was logged. |
| `aspectWidth` | `integer` | Yes | Width component of the image aspect ratio. |
| `aspectHeight` | `integer` | Yes | Height component of the image aspect ratio. |

## Raw Schema

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