{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/waymark-network/json-schema/waymark-network-route-result-schema.json",
  "title": "RouteResult",
  "description": "A route as returned by /search (trimmed for ranking responses).",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/waymark-network-openapi.json#/components/schemas/RouteResult",
  "type": "object",
  "required": [
    "id",
    "task",
    "domain",
    "steps",
    "url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "task": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "steps": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "gotchas": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "success": {
      "type": "integer"
    },
    "failure": {
      "type": "integer"
    },
    "verification": {
      "$ref": "#/$defs/Verification"
    },
    "url": {
      "type": "string",
      "format": "uri"
    }
  },
  "$defs": {
    "Verification": {
      "type": "object",
      "description": "Provenance/fact-check axis — distinct from attestation consensus.",
      "properties": {
        "status": {
          "type": "string"
        },
        "method": {
          "type": "string"
        }
      }
    }
  }
}