{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Workspace that owns this record."
    },
    "project_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Project that owns this record."
    },
    "watch_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "observation_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "observed_at": {
      "type": "string",
      "description": "UTC timestamp of the observation used here."
    },
    "latest": {
      "type": "boolean"
    },
    "basis": {
      "type": "string",
      "const": "retained_observation"
    },
    "availability": {
      "type": "string",
      "enum": [
        "complete",
        "incomplete",
        "not_present"
      ]
    },
    "total_occurrences": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "occurrence_index": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "anchor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "target_url": {
            "anyOf": [
              {
                "type": "string",
                "description": "Destination URL recorded in this evidence."
              },
              {
                "type": "null"
              }
            ],
            "description": "Destination URL recorded in this evidence."
          },
          "rel": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "context": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "line": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "column": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "offset": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "line",
                  "column",
                  "offset"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "visibility": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "occurrence_index",
          "anchor",
          "target_url",
          "rel",
          "context",
          "location",
          "visibility"
        ],
        "additionalProperties": false,
        "description": "Records in this bounded page."
      },
      "description": "Records in this bounded page."
    },
    "next_offset": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ]
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "workspace_id",
    "project_id",
    "watch_id",
    "observation_id",
    "observed_at",
    "latest",
    "basis",
    "availability",
    "total_occurrences",
    "items",
    "next_offset",
    "notes"
  ],
  "additionalProperties": {}
}
