{
  "lexicon": 1,
  "id": "net.bisks.subatomic.post",
  "defs": {
    "main": {
      "type": "record",
      "description": "One post on subatomic, reddit-but-atproto. A link post (url) or a self post (text), always addressed to a board (a freeform community tag, like a subreddit name). Written to the poster's own repo; src/index.ts's /api/submit-post reads it back off that repo to verify it before folding it into the shared feed at https://subatomic.bisks.net.",
      "key": "tid",
      "record": {
        "type": "object",
        "required": ["board", "title", "createdAt"],
        "properties": {
          "board": {
            "type": "string",
            "maxLength": 30,
            "description": "The community this post belongs to, lowercase alphanumeric plus dashes, e.g. \"atproto\" or \"cooking\"."
          },
          "title": {
            "type": "string",
            "maxLength": 300,
            "maxGraphemes": 300,
            "description": "The post title."
          },
          "url": {
            "type": "string",
            "maxLength": 2000,
            "description": "Optional link this post points to. A post has a url or text, not both."
          },
          "text": {
            "type": "string",
            "maxLength": 10000,
            "maxGraphemes": 3000,
            "description": "Optional self-post body. A post has a url or text, not both."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "When this was posted, as an ISO 8601 datetime."
          }
        }
      }
    }
  }
}
