{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citedtravel-com/json-schema/citedtravel-com-entry-answer-schema.json",
  "title": "EntryAnswer",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citedtravel-com-openapi.json#/components/schemas/EntryAnswer",
  "type": "object",
  "required": [
    "status",
    "quotes",
    "confidence",
    "official_links",
    "advisory",
    "decision_support_only"
  ],
  "properties": {
    "status": {
      "enum": [
        "visa_free",
        "visa_free_with_requirements",
        "visa_required",
        "visa_on_arrival",
        "evisa_required",
        "eta_required",
        "unclear"
      ],
      "description": "visa_free_with_requirements: no visa, but the cited source requires another formality (pre-arrival registration, digital arrival card, tourist card); see additional_requirements. A required electronic travel authorisation is eta_required."
    },
    "prior_application_needed": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "additional_requirements": {
      "type": "array",
      "description": "Formalities beyond the visa status, each quoted verbatim from the official source. Never treat a route as plain visa-free when this lists a 'required' item.",
      "items": {
        "type": "object",
        "required": [
          "type",
          "description",
          "certainty",
          "quote",
          "source_url"
        ],
        "properties": {
          "type": {
            "enum": [
              "travel_authorisation",
              "pre_arrival_registration",
              "arrival_card",
              "tourist_card",
              "evisa",
              "health_insurance"
            ]
          },
          "description": {
            "type": "string"
          },
          "certainty": {
            "enum": [
              "required",
              "check_official"
            ],
            "description": "required: the quoted sentence says it is needed. check_official: mentioned conditionally, waived for this passport, or in conflict with the status; confirm on the official page."
          },
          "quote": {
            "type": "string"
          },
          "source_id": {
            "type": "string"
          },
          "source_url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "max_stay_days": {
      "type": [
        "integer",
        "null"
      ]
    },
    "quotes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "authoritative": {
            "const": true
          },
          "translations": {
            "type": "object"
          }
        }
      }
    },
    "confidence": {
      "$ref": "#/$defs/Confidence"
    },
    "official_links": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "advisory": {
      "type": "string"
    },
    "not_a_verdict": {
      "type": "string"
    },
    "decision_support_only": {
      "const": true
    }
  },
  "$defs": {
    "Confidence": {
      "type": "object",
      "required": [
        "score",
        "level",
        "reasons"
      ],
      "properties": {
        "score": {
          "type": "number",
          "minimum": 0,
          "maximum": 1
        },
        "level": {
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}