# app.didpic.feed.post

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.post)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.post/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.feed.post/examples)

## Definitions

### `app.didpic.feed.post`

**Type**: `record`

A single-image photo post with optional caption.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No | Alt text for accessibility. |
| `text` | `string` | No | Caption text. |
| `image` | `blob` | Yes |  |
| `facets` | `array` | No |  |
| `labels` | `ref` → `#selfLabels` | No | Self-applied content labels. |
| `createdAt` | `string` (datetime) | Yes |  |
| `aspectRatio` | `ref` → `#aspectRatio` | No |  |

### `app.didpic.feed.post#selfLabel`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `val` | `string` | Yes |  |

### `app.didpic.feed.post#selfLabels`

**Type**: `object`

Self-applied label set.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `values` | `array` | No |  |

### `app.didpic.feed.post#aspectRatio`

**Type**: `object`

Image width:height in pixels.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `width` | `integer` | Yes |  |
| `height` | `integer` | Yes |  |

## Raw Schema

```json
{
  "id": "app.didpic.feed.post",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "image",
          "createdAt"
        ],
        "properties": {
          "alt": {
            "type": "string",
            "maxLength": 10000,
            "description": "Alt text for accessibility.",
            "maxGraphemes": 1000
          },
          "text": {
            "type": "string",
            "maxLength": 22000,
            "description": "Caption text.",
            "maxGraphemes": 2200
          },
          "image": {
            "type": "blob",
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "maxSize": 5000000
          },
          "facets": {
            "type": "array",
            "items": {
              "ref": "app.didpic.richtext.facet",
              "type": "ref"
            }
          },
          "labels": {
            "ref": "#selfLabels",
            "type": "ref",
            "description": "Self-applied content labels."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "aspectRatio": {
            "ref": "#aspectRatio",
            "type": "ref"
          }
        }
      },
      "description": "A single-image photo post with optional caption."
    },
    "selfLabel": {
      "type": "object",
      "required": [
        "val"
      ],
      "properties": {
        "val": {
          "type": "string",
          "maxLength": 128
        }
      }
    },
    "selfLabels": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "ref": "#selfLabel",
            "type": "ref"
          }
        }
      },
      "description": "Self-applied label set."
    },
    "aspectRatio": {
      "type": "object",
      "required": [
        "width",
        "height"
      ],
      "properties": {
        "width": {
          "type": "integer",
          "minimum": 1
        },
        "height": {
          "type": "integer",
          "minimum": 1
        }
      },
      "description": "Image width:height in pixels."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
