{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://gxplex.com/api/v1/schema/conformance-readings.json",
  "title": "Consumer suite for GXP-OBS v2: expected readings",
  "description": "The document served at /api/v1/conformance/gxp-obs-v2-readings.json: the expected reading of each fixture and the place in GXP-OBS v2 that states it.",
  "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."
    },
    "name": {
      "type": "string",
      "description": "The suite document's name, as its address spells it."
    },
    "suite_version": {
      "type": "integer",
      "description": "The suite's own version, independent of the API's `schema_version`."
    },
    "spec": {
      "type": "object",
      "description": "The spec the suite reads: `name`, `version`, `address`, and `sha256` of the bytes served at that address, with `sha256_of` saying so."
    },
    "fixtures_at": {
      "type": "string",
      "description": "Where the fixtures are served."
    },
    "is": {
      "type": "string",
      "description": "What the document is."
    },
    "comparison": {
      "type": "string",
      "description": "How a reading is compared with the expected one."
    },
    "readings": {
      "type": "array",
      "items": {
        "type": "object"
      },
      "description": "Each with `id`, `expected`, and `stated_at` (a JSON pointer into GXP-OBS v2 and the phrase found there)."
    }
  },
  "required": [
    "schema_version",
    "name",
    "suite_version",
    "spec",
    "fixtures_at",
    "is",
    "comparison",
    "readings"
  ],
  "additionalProperties": true
}
