{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/canonical/main/json-schema/canonical-validation-set-schema.json",
  "title": "ValidationSet",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canonical-authenticationrequired-api-openapi.yml#/components/schemas/ValidationSet",
  "type": "object",
  "properties": {
    "account-id": {
      "type": "string",
      "description": "Identifier for the developer account."
    },
    "name": {
      "type": "string",
      "description": "Name of the validation set."
    },
    "mode": {
      "type": "string",
      "description": "Mode of validation the system will use.",
      "enum": [
        "monitor",
        "enforce"
      ]
    },
    "pinned-at": {
      "type": "integer",
      "description": "The sequence number the set is pinned at (0 if not pinned)."
    },
    "sequence": {
      "type": "integer",
      "description": "The current sequence of the validation set assertion."
    },
    "valid": {
      "type": "boolean",
      "description": "Reports whether the set is valid for currently installed snaps."
    }
  }
}