community.lexicon.media.book.review

A review or rating of a book. Separate record keys allow multiple reviews of the same book, including rereads.

Details · record, key tid
Kindrecord
Record keytid
Authoritybook.media.lexicon.community
Commit rev3n2h5svsmh22j
Indexed

Showing version bafyreidwjlm3r5ffp5d6k32f7v3emvpb6fxzflwy7uyizmlvjft56z43ly. Show the latest

cid bafyreidwjlm3r5ffp5d6k32f7v3emvpb6fxzflwy7uyizmlvjft56z43ly

Checks

Valid
  • unlimited-string defs.main.record.properties.textContentNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "flags": {
      "description": "Optional review presentation flags.",
      "properties": {
        "spoilers": {
          "description": "Whether the review contains spoilers.",
          "type": "boolean"
        }
      },
      "required": [],
      "type": "object"
    },
    "main": {
      "description": "A review or rating of a book. Separate record keys allow multiple reviews of the same book, including rereads.",
      "key": "tid",
      "record": {
        "description": "A self-contained review. At least one of rating or nonempty textContent is required.",
        "properties": {
          "content": {
            "description": "Optional client-specific rich content, using the same open-union shape as site.standard.document.content. Each content object must include a $type identifying its format. A written review must also supply its plain-text textContent fallback.",
            "refs": [],
            "type": "union"
          },
          "createdAt": {
            "description": "Time this review was created.",
            "format": "datetime",
            "type": "string"
          },
          "flags": {
            "ref": "#flags",
            "type": "ref"
          },
          "rating": {
            "description": "Rating on a 1-20 scale; divide by four for a five-star display.",
            "maximum": 20,
            "minimum": 1,
            "type": "integer"
          },
          "subject": {
            "ref": "community.lexicon.media.book.defs#editionRef",
            "type": "ref"
          },
          "subjectRecord": {
            "description": "Optional AT-URI to an edition record for enrichment; subject.identifiers remain the matching mechanism.",
            "format": "at-uri",
            "type": "string"
          },
          "textContent": {
            "description": "Plain-text review, without Markdown. At least one of rating or nonempty textContent must be supplied. Rich content alone does not satisfy this requirement.",
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A portable review with an embedded book reference.",
  "id": "community.lexicon.media.book.review",
  "lexicon": 1
}