{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/askedthrice-com/json-schema/askedthrice-com-scan-schema.json",
  "title": "Scan",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/askedthrice-com-openapi.json#/components/schemas/Scan",
  "type": "object",
  "required": [
    "id",
    "status",
    "domain"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "running",
        "done",
        "failed"
      ]
    },
    "stage": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "reading_site",
        "asking",
        "analyzing",
        "done",
        null
      ]
    },
    "brand": {
      "type": [
        "string",
        "null"
      ]
    },
    "domain": {
      "type": "string"
    },
    "result": {
      "type": "object",
      "additionalProperties": true,
      "description": "Present when `status` is `done`: the profile read from the site, the questions, every answer with its citations, the businesses named, the cited sources and the steps."
    }
  }
}