{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.stackhawk.com/schemas/scan",
  "title": "StackHawk Scan",
  "description": "A security scan run against an application environment",
  "type": "object",
  "properties": {
    "scanId": { "type": "string", "description": "Unique scan identifier" },
    "appId": { "type": "string", "description": "Application ID" },
    "envId": { "type": "string", "description": "Environment ID" },
    "status": {
      "type": "string",
      "enum": ["RUNNING", "COMPLETED", "FAILED"],
      "description": "Current scan status"
    },
    "startedAt": { "type": "string", "format": "date-time" },
    "completedAt": { "type": "string", "format": "date-time" },
    "findingCount": { "type": "integer", "description": "Total number of findings" }
  },
  "required": ["scanId", "appId", "envId", "status"]
}
