pub.leaflet.publication

Record declaring a publication

Repository @leaflet.pub did:plc:btxrwcaeyodrap5mnjw2fvmz namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authorityleaflet.pub
Indexed
cid bafyreib54wec7fdbf63hwljbwm2pnlhae23rq6nlkdrbw2kqbckuymb7mi

Checks

Valid
  • unlimited-string defs.main.record.properties.base_pathNo maxLength, maxGraphemes or format limits this string.
  • field-name-syntax defs.main.record.properties.base_pathThe field name base_path should be letters and digits, starting with a letter.
  • unlimited-string defs.preferences.properties.prevNextDirectionNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record declaring a publication",
      "key": "tid",
      "record": {
        "properties": {
          "base_path": {
            "type": "string"
          },
          "description": {
            "maxLength": 2000,
            "type": "string"
          },
          "icon": {
            "accept": [
              "image/*"
            ],
            "maxSize": 1000000,
            "type": "blob"
          },
          "name": {
            "maxLength": 2000,
            "type": "string"
          },
          "preferences": {
            "ref": "#preferences",
            "type": "ref"
          },
          "theme": {
            "ref": "#theme",
            "type": "ref"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "preferences": {
      "properties": {
        "prevNextDirection": {
          "default": "rtl",
          "knownValues": [
            "ltr",
            "rtl"
          ],
          "type": "string"
        },
        "showComments": {
          "default": true,
          "type": "boolean"
        },
        "showFirstLast": {
          "default": false,
          "type": "boolean"
        },
        "showInDiscover": {
          "default": true,
          "type": "boolean"
        },
        "showMentions": {
          "default": true,
          "type": "boolean"
        },
        "showOtherPublicationsInTags": {
          "default": true,
          "type": "boolean"
        },
        "showPrevNext": {
          "default": true,
          "type": "boolean"
        },
        "showRecommends": {
          "default": true,
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "theme": {
      "properties": {
        "accentBackground": {
          "refs": [
            "pub.leaflet.theme.color#rgba",
            "pub.leaflet.theme.color#rgb"
          ],
          "type": "union"
        },
        "accentText": {
          "refs": [
            "pub.leaflet.theme.color#rgba",
            "pub.leaflet.theme.color#rgb"
          ],
          "type": "union"
        },
        "backgroundColor": {
          "refs": [
            "pub.leaflet.theme.color#rgba",
            "pub.leaflet.theme.color#rgb"
          ],
          "type": "union"
        },
        "backgroundImage": {
          "ref": "pub.leaflet.theme.backgroundImage",
          "type": "ref"
        },
        "bodyFont": {
          "maxLength": 100,
          "type": "string"
        },
        "headingFont": {
          "maxLength": 100,
          "type": "string"
        },
        "pageBackground": {
          "refs": [
            "pub.leaflet.theme.color#rgba",
            "pub.leaflet.theme.color#rgb"
          ],
          "type": "union"
        },
        "pageWidth": {
          "maximum": 1600,
          "minimum": 0,
          "type": "integer"
        },
        "primary": {
          "refs": [
            "pub.leaflet.theme.color#rgba",
            "pub.leaflet.theme.color#rgb"
          ],
          "type": "union"
        },
        "showPageBackground": {
          "default": false,
          "type": "boolean"
        },
        "wordmark": {
          "ref": "pub.leaflet.theme.wordmark",
          "type": "ref"
        }
      },
      "type": "object"
    }
  },
  "id": "pub.leaflet.publication",
  "lexicon": 1
}