Schemas / Book

rig.book.cover

v0.31.0 · draft 1 field 1 required

Fields

FieldTypeMeaning
asset entity required Entity carrying rig.media.asset_ref (kind image)

Cover image of a book product. Format when present.

Do not put a path on this schema. File identity lives on the asset entity. Decode / GPU / thumbnails are fulfillment.

A second image is another entity. Do not invent a gallery array here.

JSON Schema

Resolves at https://rig.works/schemas/rig.book.cover.schema.jsonraw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.book.cover.schema.json",
  "title": "rig.book.cover",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "asset": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    }
  },
  "required": [
    "asset"
  ],
  "description": "Cover image. asset is a rig.media.asset_ref entity. Not an inline path."
}

Seen in

book-isbn.json