{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gxplex.com/api/v1/schema/series-pointer.json",
  "title": "Observation series pointer record",
  "description": "The one line /api/v1/series.jsonl serves. The address carried the whole observation series as one file and now carries no record; this record names the index of the period shards, /api/v1/series.json.",
  "type": "object",
  "properties": {
    "schema_version": {
      "type": "integer",
      "description": "Always 1 under this contract. It increments only when a field is removed or re-typed, which the published contract forbids. Fields have been re-typed with this value unchanged; https://gxplex.com/how/schemas/#history lists each with its commit and its correction."
    },
    "collection": {
      "type": "string",
      "description": "Always `observations`."
    },
    "generated_at": {
      "type": "string",
      "format": "date",
      "description": "The day this record calls today, at day granularity. Not a build clock: the unit of this archive is the day."
    },
    "source": {
      "type": "string",
      "description": "The origin this document was built for."
    },
    "deprecated_on": {
      "type": "string",
      "format": "date",
      "description": "The day the split of the series into period shards entered the record: the date of the changelog entry series-period-shards, read from the tree at build, so a rebuild outside git states the same day. A build whose tree holds no such entry, more than one, or one with no calendar day is refused, and no other day is used. Not the first day a reader received this pointer, which is the first published build after that entry and is not stated here."
    },
    "notice": {
      "type": "string",
      "description": "What the address carried and what it carries now."
    },
    "index": {
      "type": "string",
      "description": "The index of the period shards."
    },
    "source_terms": {
      "type": "string",
      "description": "A statement of fact about the compiled content. It is not a licence and grants nothing."
    },
    "rights": {
      "type": "object",
      "description": "Where the terms position of each row is recorded, what each value of licence_class means in terms of this archive handling, and the word ceiling every published quotation is held under."
    },
    "_record": {
      "const": "pointer"
    }
  },
  "required": [
    "_record",
    "schema_version",
    "collection",
    "generated_at",
    "source",
    "deprecated_on",
    "notice",
    "index",
    "source_terms",
    "rights"
  ],
  "additionalProperties": true
}
