{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/songlinks-io/json-schema/songlinks-io-version-response-schema.json",
  "title": "VersionResponse",
  "description": "What is serving: the release, the model and the settings every lookup uses.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/songlinks-io-openapi.json#/components/schemas/VersionResponse",
  "properties": {
    "version": {
      "type": "string",
      "title": "Version",
      "description": "the release, as in the site's small print. Two deploys of one release can carry different models, which is what `model_md5` is for"
    },
    "model_md5": {
      "type": "string",
      "title": "Model Md5",
      "description": "identifies the model serving lookups"
    },
    "code_commit": {
      "type": "string",
      "title": "Code Commit",
      "description": "identifies the code serving"
    },
    "mlc_snapshot": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Mlc Snapshot",
      "description": "the date of the registration-data release this answer read, YYYY-MM-DD. Null when that load is undated: never a guess"
    },
    "threshold": {
      "type": "number",
      "title": "Threshold",
      "description": "the default `threshold` for a lookup"
    },
    "review_threshold": {
      "type": "number",
      "title": "Review Threshold",
      "description": "the lowest probability at which an unjoined pair is listed in `review`"
    },
    "max_candidates": {
      "type": "integer",
      "title": "Max Candidates",
      "description": "the most records one lookup groups"
    },
    "latency_ms": {
      "type": "integer",
      "title": "Latency Ms",
      "description": "always 0: no lookup was run"
    }
  },
  "type": "object",
  "required": [
    "version",
    "model_md5",
    "code_commit",
    "threshold",
    "review_threshold",
    "max_candidates",
    "latency_ms"
  ]
}