{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/samesake-co-uk/json-schema/samesake-co-uk-snapshot-completion-response-schema.json",
  "title": "SnapshotCompletionResponse",
  "description": "What completing the snapshot did.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/samesake-co-uk-openapi.yml#/components/schemas/SnapshotCompletionResponse",
  "required": [
    "status",
    "missingCount"
  ],
  "type": "object",
  "properties": {
    "status": {
      "description": "`Applied` if the missing records were deleted; `Held` if there were too many to delete without an admin's say-so.",
      "$ref": "#/$defs/SnapshotStatus"
    },
    "missingCount": {
      "type": "integer",
      "description": "How many of the source's records weren't in the snapshot.",
      "format": "int32"
    }
  },
  "$defs": {
    "SnapshotStatus": {
      "enum": [
        "Applied",
        "Held"
      ],
      "type": "string",
      "description": "What completing a snapshot did. `Applied`: the records missing from it were deleted. `Held`: it would delete more than 10% of the source's records, so nothing is deleted unless an admin applies it in Samesake."
    }
  }
}