Sanity · Schema

AssetDocument

Headless CMSContent ManagementGROQReal-TimeStructured ContentDeveloper Platform

Properties

Name Type Description
document object
View JSON Schema on GitHub

JSON Schema

sanity-assetdocument-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AssetDocument",
  "title": "AssetDocument",
  "type": "object",
  "properties": {
    "document": {
      "type": "object",
      "properties": {
        "_id": {
          "type": "string"
        },
        "_type": {
          "type": "string",
          "enum": [
            "sanity.imageAsset",
            "sanity.fileAsset"
          ]
        },
        "url": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "mimeType": {
          "type": "string"
        },
        "size": {
          "type": "integer"
        }
      }
    }
  }
}