{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "applied": {
      "type": "boolean"
    },
    "blocked": {
      "type": "boolean"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "diff": {
      "type": "string"
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": ["error", "warning"]
          },
          "message": {
            "type": "string"
          }
        },
        "required": ["code", "severity", "message"],
        "additionalProperties": {}
      }
    },
    "next": {
      "type": "string"
    }
  },
  "required": ["applied", "blocked", "files", "diff", "diagnostics", "next"],
  "additionalProperties": {},
  "title": "Migration",
  "description": "Also printed on stdout, with exit 1 and MIGRATION_BLOCKED on stderr, when blocked."
}
