{
  "id": "item.json",
  "$schema": "http://json-schema.org/draft-04/schema",
  "title": "Content item",
  "description": "",
  "type": [
    "object"
  ],
  "properties": {
    "id": {
      "$ref": "base.json#/definitions/uuid"
    },
    "sites": {
      "$ref": "base.json#/definitions/sites"
    },
    "score": {
      "type": "number",
      "default": 0,
      "example": 0
    },
    "metadata": {
      "$ref": "metadata.json"
    },
    "starred": {
      "description": "Starred content blocks of the item in items listing",
      "type": "array",
      "minItems": 0,
      "uniqueItems": true,
      "items": {
        "$ref": "contentblock.json"
      }
    },
    "content": {
      "description": "Content blocks of the item",
      "type": "array",
      "minItems": 0,
      "items": {
        "$ref": "contentblock.json"
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "format": "date-time"
        }
      ]
    }
  },
  "oneOf": [
    {
      "required": [
        "content"
      ]
    },
    {
      "required": [
        "starred"
      ]
    }
  ]
}