# app.userinput.discussion

> Published by [userinput.app](https://lexicon.garden/identity/did:plc:uyixj57k6nmxrdj7pjs2ss5s)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.discussion)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.discussion/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.discussion/examples)

## Definitions

### `app.userinput.discussion`

**Type**: `record`

A piece of feedback posted into a space. Lives in the author's repo and points at the space.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `body` | `string` | No |  |
| `tags` | `array` | No | Tag values drawn from the space's tag list. |
| `space` | `ref` → `com.atproto.repo.strongRef` | Yes | Strong reference to the app.userinput.space this belongs to. Indexed by constellation at space.uri. |
| `title` | `string` | Yes |  |
| `images` | `array` | No | Optional image attachments. |
| `createdAt` | `string` (datetime) | Yes |  |

### `app.userinput.discussion#image`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `alt` | `string` | No |  |
| `image` | `blob` | Yes |  |

## Raw Schema

```json
{
  "id": "app.userinput.discussion",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "space",
          "title",
          "createdAt"
        ],
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 20000,
            "maxGraphemes": 10000
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            },
            "maxLength": 8,
            "description": "Tag values drawn from the space's tag list."
          },
          "space": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Strong reference to the app.userinput.space this belongs to. Indexed by constellation at space.uri."
          },
          "title": {
            "type": "string",
            "maxLength": 600,
            "maxGraphemes": 300
          },
          "images": {
            "type": "array",
            "items": {
              "ref": "#image",
              "type": "ref"
            },
            "maxLength": 4,
            "description": "Optional image attachments."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A piece of feedback posted into a space. Lives in the author's repo and points at the space."
    },
    "image": {
      "type": "object",
      "required": [
        "image"
      ],
      "properties": {
        "alt": {
          "type": "string",
          "maxLength": 2000
        },
        "image": {
          "type": "blob",
          "accept": [
            "image/png",
            "image/jpeg",
            "image/webp",
            "image/gif"
          ],
          "maxSize": 1000000
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
