changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "anyOf": [
+ {
+ "properties": {
+ "additional_requirements": {
+ "description": "Other formalities (travel authorisation, pre-arrival registration, arrival or tourist card), each with the verbatim official sentence and certainty \"required\" or \"check_official\".",
+ "type": "array"
+ },
+ "advisory": {
+ "description": "Mandatory advisory: show it to the user.",
+ "type": "string"
+ },
+ "attribution": {
+ "description": "Attribution strings required by the source licenses.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "confidence": {
+ "description": "Deterministic confidence: score from 0 to 1, a level, and the reasons (source kind, cross-checks, staleness...).",
+ "properties": {
+ "level": {
+ "examples": [
+ "high",
+ "medium",
+ "low"
+ ],
+ "type": "string"
+ },
+ "reasons": {
+ "description": "Why the score is what it is.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "score": {
+ "maximum": 1,
+ "minimum": 0,
+ "type": "number"
+ }
+ },
+ "required": [
+ "score",
+ "level"
+ ],
+ "type": "object"
+ },
+ "coverage_note": {
+ "type": "string"
+ },
+ "cross_checks": {
+ "description": "Independent datasets the value was checked against, with the result.",
+ "type": "array"
+ },
+ "decision_support_only": {
+ "const": true
+ },
+ "destination": {
+ "description": "Country (ISO codes and name, localized to lang).",
+ "properties": {
+ "iso2": {
+ "type": "string"
+ },
+ "iso3": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "name_lang": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "iso2"
+ ],
+ "type": "object"
+ },
+ "fact_id": {
+ "type": "string"
+ },
+ "last_verified": {
+ "description": "Date the value was last verified (YYYY-MM-DD).",
+ "type": "string"
+ },
+ "max_stay_days": {
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "next_review_due": {
+ "description": "Date of the next scheduled review (YYYY-MM-DD).",
+ "type": "string"
+ },
+ "not_a_verdict": {
+ "type": "string"
+ },
+ "notes": {
+ "type": "array"
+ },
+ "official_links": {
+ "description": "Official government pages to show to the user.",
+ "type": "array"
+ },
+ "passport": {
+ "description": "Country (ISO codes and name, localized to lang).",
+ "properties": {
+ "iso2": {
+ "type": "string"
+ },
+ "iso3": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "name_lang": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "iso2"
+ ],
+ "type": "object"
+ },
+ "passport_validity_statement": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "prior_application_needed": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "purpose": {
+ "type": "string"
+ },
+ "quotes": {
+ "description": "Verbatim official text, in its original language. Authoritative.",
+ "items": {
+ "properties": {
+ "authoritative": {
+ "type": "boolean"
+ },
+ "language": {
+ "type": "string"
+ },
+ "publisher": {
+ "type": "string"
+ },
+ "text": {
+ "type": "string"
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "text",
+ "url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "related": {
+ "type": "array"
+ },
+ "sources": {
+ "description": "Cited sources for this fact.",
+ "items": {
+ "description": "One cited source.",
+ "properties": {
+ "license": {
+ "description": "License of the source, e.g. CC0-1.0, OGL-UK-3.0, MIT.",
+ "type": "string"
+ },
+ "publisher": {
+ "type": "string"
+ },
+ "quote": {
+ "description": "Verbatim text from the source, when quoted.",
+ "type": "string"
+ },
+ "retrieved_at": {
+ "description": "When the source was fetched (ISO 8601).",
+ "type": "string"
+ },
+ "source_id": {
+ "type": "string"
+ },
+ "source_value": {
+ "description": "The raw value as given by the source, when not quoted."
+ },
+ "url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "publisher",
+ "url",
+ "license"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "status": {
+ "description": "visa_free, visa_free_with_requirements, visa_on_arrival, eta_required, evisa_required, visa_required or unclear (more values may be added).",
+ "type": "string"
+ },
+ "status_by_source": {
+ "description": "Status according to each source.",
+ "type": "object"
+ }
+ },
+ "required": [
+ "passport",
+ "destination",
+ "status",
+ "quotes",
+ "official_links",
+ "advisory",
+ "decision_support_only",
+ "sources",
+ "confidence",
+ "last_verified"
+ ],
+ "title": "Result",
+ "type": "object"
+ },
+ {
+ "description": "Only on error results (isError: true): RFC 9457 problem, e.g. unknown country, no data, key required, rate limited, sanctions block.",
+ "properties": {
+ "detail": {
+ "type": "string"
+ },
+ "status": {
+ "type": "integer"
+ },
+ "title": {
+ "type": "string"
+ },
+ "type": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "title",
+ "status"
+ ],
+ "title": "Error (problem details)",
+ "type": "object"
+ },
+ {
+ "description": "Only on error results (isError: true): x402 v2 payment requirements. Pay and retry with _meta[\"x402/payment\"].",
+ "properties": {
+ "accepts": {
+ "type": "array"
+ },
+ "error": {
+ "type": "string"
+ },
+ "extensions": {
+ "type": "object"
+ },
+ "resource": {
+ "type": "object"
+ },
+ "x402Version": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x402Version",
+ "accepts"
+ ],
+ "title": "Error (x402 payment request)",
+ "type": "object"
+ }
+ ],
+ "type": "object"
+}