app.offprint.block.imageGrid

Repository @offprint.app did:plc:pgjkomf37an4czloay5zeth6 namespace authority
Details · object
Kindobject
Authorityblock.offprint.app
Indexed
cid bafyreicqxp7sgknj3lduzwrvcd5nymijqci7zry3mmzuk3emvvh3ejdwdy

Checks

Valid
  • unlimited-string defs.main.properties.aspectRatioNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.properties.captionNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "gridImage": {
      "properties": {
        "alt": {
          "maxGraphemes": 300,
          "type": "string"
        },
        "aspectRatio": {
          "ref": "app.offprint.block.image#aspectRatio",
          "type": "ref"
        },
        "blob": {
          "accept": [
            "image/*"
          ],
          "maxSize": 1000000,
          "type": "blob"
        }
      },
      "type": "object"
    },
    "main": {
      "properties": {
        "aspectRatio": {
          "description": "Aspect ratio mode",
          "enum": [
            "landscape",
            "portrait",
            "square",
            "mosaic"
          ],
          "type": "string"
        },
        "caption": {
          "description": "Grid caption",
          "type": "string"
        },
        "gridRows": {
          "description": "Number of rows in the grid",
          "maximum": 2,
          "minimum": 1,
          "type": "integer"
        },
        "images": {
          "description": "Array of images in the grid (2-6)",
          "items": {
            "ref": "#gridImage",
            "type": "ref"
          },
          "maxLength": 6,
          "minLength": 2,
          "required": true,
          "type": "array"
        }
      },
      "required": [
        "images"
      ],
      "type": "object"
    }
  },
  "id": "app.offprint.block.imageGrid",
  "lexicon": 1
}