{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "quest": {
      "type": "string"
    },
    "key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "environment": {
      "description": "The environment whose release and station codes were read; null when the CLI scope names none, so the API key's own environment, test by default, was used. Always present; optional only because CLI 1.70 and earlier left it out.",
      "anyOf": [
        {
          "type": "string",
          "enum": ["test", "live"]
        },
        {
          "type": "null"
        }
      ]
    },
    "directory": {
      "type": "string",
      "description": "Where the files were written"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "station": {
            "type": "string",
            "description": "The station's key"
          },
          "label": {
            "type": "string"
          },
          "proof": {
            "description": "How the station is proved: transaction or code. Other values may be added. Always present; optional only because CLI 1.70 and earlier left it out.",
            "type": "string"
          },
          "file": {
            "type": "string",
            "description": "The SVG file, relative to the working directory"
          },
          "link": {
            "type": "string",
            "description": "For a transaction station, what the QR code encodes: solana: and the --url with ?station=<key>, URL-encoded. For a code station, the --page-url it links to; the QR code adds the quest, station and the station's code as query parameters, and the code is only in the file."
          }
        },
        "required": ["station", "label", "file", "link"]
      },
      "description": "One QR code per check-in station that has one, in the quest's order"
    },
    "skipped": {
      "description": "Stations without a file. Always present; optional only because CLI 1.70 and earlier left it out.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "station": {
            "type": "string",
            "description": "The station's key"
          },
          "label": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "description": "Why no file was written: station-code-not-set for a code station without a code in this environment. Other reasons may be added."
          }
        },
        "required": ["station", "label", "reason"]
      }
    },
    "next": {
      "type": "string"
    }
  },
  "required": ["quest", "key", "directory", "files", "next"],
  "additionalProperties": {},
  "title": "Station QR codes written",
  "description": "Never contains a station's code."
}
