changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "anyOf": [
+ {
+ "properties": {
+ "attribution": {
+ "description": "Attribution strings to show to users when you display these facts.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "category": {
+ "const": "emergency"
+ },
+ "country": {
+ "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"
+ },
+ "data": {
+ "additionalProperties": {
+ "description": "One cited fact.",
+ "properties": {
+ "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"
+ },
+ "cross_checks": {
+ "description": "Independent datasets the value was checked against, with the result.",
+ "type": "array"
+ },
+ "field": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "last_verified": {
+ "description": "Date the value was last verified (YYYY-MM-DD).",
+ "type": "string"
+ },
+ "localization": {
+ "type": "object"
+ },
+ "next_review_due": {
+ "description": "Date of the next scheduled review (YYYY-MM-DD).",
+ "type": "string"
+ },
+ "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"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "description": "The fact value; its shape depends on the field."
+ }
+ },
+ "required": [
+ "value",
+ "sources",
+ "last_verified",
+ "confidence"
+ ],
+ "type": "object"
+ },
+ "description": "Emergency-number facts. Keys are field names, each value is a cited fact.",
+ "properties": {
+ "numbers": {
+ "description": "police, ambulance, fire, general (null when there is no separate number) and all_numbers.",
+ "properties": {
+ "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"
+ },
+ "cross_checks": {
+ "description": "Independent datasets the value was checked against, with the result.",
+ "type": "array"
+ },
+ "field": {
+ "type": "string"
+ },
+ "id": {
+ "type": "string"
+ },
+ "last_verified": {
+ "description": "Date the value was last verified (YYYY-MM-DD).",
+ "type": "string"
+ },
+ "localization": {
+ "type": "object"
+ },
+ "next_review_due": {
+ "description": "Date of the next scheduled review (YYYY-MM-DD).",
+ "type": "string"
+ },
+ "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"
+ },
+ "unit": {
+ "type": "string"
+ },
+ "value": {
+ "description": "The fact value; its shape depends on the field."
+ }
+ },
+ "required": [
+ "value",
+ "sources",
+ "last_verified",
+ "confidence"
+ ],
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "dataset_version": {
+ "description": "Version of the dataset that answered.",
+ "type": "string"
+ },
+ "disclaimer": {
+ "description": "Informational-use disclaimer.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "country",
+ "data",
+ "attribution"
+ ],
+ "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"
+}