# pub.leaflet.interactions.questionVisibility

> Declares which questions asked on a document the author accepted or hid. Lives in the document's repo, with a record key matching the document's. An answered question shows unless hidden; any other question is pending.

- Kind: record
- Record key: any
- Authority: interactions.leaflet.pub
- Lexicon: 1
- Published by [leaflet.pub](https://lexicon.garden/identity/did:plc:btxrwcaeyodrap5mnjw2fvmz), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.interactions.questionVisibility)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.interactions.questionVisibility/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:btxrwcaeyodrap5mnjw2fvmz/pub.leaflet.interactions.questionVisibility/analytics)

## Record (`pub.leaflet.interactions.questionVisibility`)

Type: record · key any

### Properties

- `accepted` (array, required): pub.leaflet.interactions.question records shown on the document.
  - Constraints: maxLength: 500
  - `items` (string · at-uri)
- `hidden` (array, required): pub.leaflet.interactions.question records never shown on the document.
  - Constraints: maxLength: 500
  - `items` (string · at-uri)
- `subject` (string · at-uri, required): The document whose questions this record moderates.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Declares which questions asked on a document the author accepted or hid. Lives in the document's repo, with a record key matching the document's. An answered question shows unless hidden; any other question is pending.",
      "key": "any",
      "record": {
        "properties": {
          "accepted": {
            "description": "pub.leaflet.interactions.question records shown on the document.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 500,
            "type": "array"
          },
          "hidden": {
            "description": "pub.leaflet.interactions.question records never shown on the document.",
            "items": {
              "format": "at-uri",
              "type": "string"
            },
            "maxLength": 500,
            "type": "array"
          },
          "subject": {
            "description": "The document whose questions this record moderates.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "accepted",
          "hidden"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "pub.leaflet.interactions.questionVisibility",
  "lexicon": 1
}
```
