{
  "openapi": "3.1.0",
  "info": {
    "title": "Goods Across Borders API",
    "version": "v1",
    "summary": "Read-only static JSON API for customs, import, and shipping rule data.",
    "description": "Neutral reference for international customs and shipping rules. Licensed CC-BY 4.0.",
    "termsOfService": "https://goodsacrossborders.com/disclaimer",
    "contact": {
      "name": "Goods Across Borders",
      "url": "https://goodsacrossborders.com/contact",
      "email": "api@goodsacrossborders.com"
    },
    "license": {
      "name": "CC-BY 4.0",
      "url": "https://creativecommons.org/licenses/by/4.0/"
    }
  },
  "servers": [
    {
      "url": "https://goodsacrossborders.com"
    }
  ],
  "tags": [
    {
      "name": "items",
      "description": "Items that cross borders"
    },
    {
      "name": "countries",
      "description": "Country customs profiles"
    },
    {
      "name": "rules",
      "description": "Item × country × purpose rule combinations"
    },
    {
      "name": "carriers",
      "description": "International parcel carriers"
    },
    {
      "name": "medications",
      "description": "Medications with per-country travel rules"
    },
    {
      "name": "incoterms",
      "description": "Incoterms 2020"
    },
    {
      "name": "hs-chapters",
      "description": "Harmonized System chapter metadata"
    },
    {
      "name": "guides",
      "description": "Long-form explainers"
    },
    {
      "name": "airports",
      "description": "International airport customs profiles"
    },
    {
      "name": "airlines",
      "description": "Airline cabin and baggage policies"
    },
    {
      "name": "scenarios",
      "description": "Procedural cross-border scenarios"
    },
    {
      "name": "duty-rates",
      "description": "Duty rate entries per lane × HS chapter"
    },
    {
      "name": "route-pairs",
      "description": "Country-pair metadata including FTAs"
    },
    {
      "name": "changelog",
      "description": "Curated site-data changelog"
    }
  ],
  "paths": {
    "/api/v1/items.json": {
      "get": {
        "summary": "List all items",
        "operationId": "list_items",
        "tags": [
          "items"
        ],
        "responses": {
          "200": {
            "description": "Array of items",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Item"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/items/{slug}.json": {
      "get": {
        "summary": "Fetch a single Item",
        "operationId": "get_item",
        "tags": [
          "items"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Item slug (e.g. vape-e-cigarette)"
          }
        ],
        "responses": {
          "200": {
            "description": "Single Item",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Item"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/countries.json": {
      "get": {
        "summary": "List all countries",
        "operationId": "list_countries",
        "tags": [
          "countries"
        ],
        "responses": {
          "200": {
            "description": "Array of countries",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Country"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/countries/{slug}.json": {
      "get": {
        "summary": "Fetch a single Country",
        "operationId": "get_country",
        "tags": [
          "countries"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Country slug (e.g. japan)"
          }
        ],
        "responses": {
          "200": {
            "description": "Single Country",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Country"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/rules.json": {
      "get": {
        "summary": "List all rules",
        "operationId": "list_rules",
        "tags": [
          "rules"
        ],
        "responses": {
          "200": {
            "description": "Array of rules",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Rule"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/rules/{id}.json": {
      "get": {
        "summary": "Fetch a single Rule",
        "operationId": "get_rule",
        "tags": [
          "rules"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Rule ID (itemSlug_countrySlug_purpose)"
          }
        ],
        "responses": {
          "200": {
            "description": "Single Rule",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Rule"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/carriers.json": {
      "get": {
        "summary": "List all carriers",
        "operationId": "list_carriers",
        "tags": [
          "carriers"
        ],
        "responses": {
          "200": {
            "description": "Array of carriers",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Carrier"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/carriers/{slug}.json": {
      "get": {
        "summary": "Fetch a single Carrier",
        "operationId": "get_carrier",
        "tags": [
          "carriers"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Carrier slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Single Carrier",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Carrier"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/medications.json": {
      "get": {
        "summary": "List all medications",
        "operationId": "list_medications",
        "tags": [
          "medications"
        ],
        "responses": {
          "200": {
            "description": "Array of medications",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Medication"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/medications/{slug}.json": {
      "get": {
        "summary": "Fetch a single Medication",
        "operationId": "get_medication",
        "tags": [
          "medications"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Medication slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Single Medication",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Medication"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/incoterms.json": {
      "get": {
        "summary": "List all incoterms",
        "operationId": "list_incoterms",
        "tags": [
          "incoterms"
        ],
        "responses": {
          "200": {
            "description": "Array of incoterms",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Incoterm"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/incoterms/{slug}.json": {
      "get": {
        "summary": "Fetch a single Incoterm",
        "operationId": "get_incoterm",
        "tags": [
          "incoterms"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Incoterm slug (e.g. ddp)"
          }
        ],
        "responses": {
          "200": {
            "description": "Single Incoterm",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Incoterm"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/hs-chapters.json": {
      "get": {
        "summary": "List all hs-chapters",
        "operationId": "list_hs_chapters",
        "tags": [
          "hs-chapters"
        ],
        "responses": {
          "200": {
            "description": "Array of hs-chapters",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HsChapter"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/hs-chapters/{chapter}.json": {
      "get": {
        "summary": "Fetch a single HsChapter",
        "operationId": "get_hschapter",
        "tags": [
          "hs-chapters"
        ],
        "parameters": [
          {
            "name": "chapter",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HS chapter number"
          }
        ],
        "responses": {
          "200": {
            "description": "Single HsChapter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HsChapter"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/hs-headings.json": {
      "get": {
        "summary": "List all hs-headings",
        "operationId": "list_hs_headings",
        "tags": [
          "hs-headings"
        ],
        "responses": {
          "200": {
            "description": "Array of hs-headings",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/HsHeading"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/hs-headings/{heading}.json": {
      "get": {
        "summary": "Fetch a single HsHeading",
        "operationId": "get_hsheading",
        "tags": [
          "hs-headings"
        ],
        "parameters": [
          {
            "name": "heading",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "HS heading number (4-digit)"
          }
        ],
        "responses": {
          "200": {
            "description": "Single HsHeading",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HsHeading"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/guides.json": {
      "get": {
        "summary": "List all guides",
        "operationId": "list_guides",
        "tags": [
          "guides"
        ],
        "responses": {
          "200": {
            "description": "Array of guides",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Guide"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/guides/{slug}.json": {
      "get": {
        "summary": "Fetch a single Guide",
        "operationId": "get_guide",
        "tags": [
          "guides"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Guide slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Single Guide",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Guide"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/airports.json": {
      "get": {
        "summary": "List all airports",
        "operationId": "list_airports",
        "tags": [
          "airports"
        ],
        "responses": {
          "200": {
            "description": "Array of airports",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirportProfile"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/airports/{iata}.json": {
      "get": {
        "summary": "Fetch a single AirportProfile",
        "operationId": "get_airportprofile",
        "tags": [
          "airports"
        ],
        "parameters": [
          {
            "name": "iata",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Airport IATA code (lower-cased)"
          }
        ],
        "responses": {
          "200": {
            "description": "Single AirportProfile",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AirportProfile"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/airlines.json": {
      "get": {
        "summary": "List all airlines",
        "operationId": "list_airlines",
        "tags": [
          "airlines"
        ],
        "responses": {
          "200": {
            "description": "Array of airlines",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AirlineCabinPolicy"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/airlines/{slug}.json": {
      "get": {
        "summary": "Fetch a single AirlineCabinPolicy",
        "operationId": "get_airlinecabinpolicy",
        "tags": [
          "airlines"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Airline slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Single AirlineCabinPolicy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AirlineCabinPolicy"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/scenarios.json": {
      "get": {
        "summary": "List all scenarios",
        "operationId": "list_scenarios",
        "tags": [
          "scenarios"
        ],
        "responses": {
          "200": {
            "description": "Array of scenarios",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ScenarioGuide"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/scenarios/{slug}.json": {
      "get": {
        "summary": "Fetch a single ScenarioGuide",
        "operationId": "get_scenarioguide",
        "tags": [
          "scenarios"
        ],
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Scenario slug"
          }
        ],
        "responses": {
          "200": {
            "description": "Single ScenarioGuide",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScenarioGuide"
                }
              }
            }
          },
          "404": {
            "description": "Not found. Static files return the CDN's own 404 page rather than a JSON envelope."
          }
        }
      }
    },
    "/api/v1/duty-rates.json": {
      "get": {
        "summary": "List all duty-rates",
        "operationId": "list_duty_rates",
        "tags": [
          "duty-rates"
        ],
        "responses": {
          "200": {
            "description": "Array of duty-rates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DutyRate"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/route-pairs.json": {
      "get": {
        "summary": "List all route-pairs",
        "operationId": "list_route_pairs",
        "tags": [
          "route-pairs"
        ],
        "responses": {
          "200": {
            "description": "Array of route-pairs",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/RoutePair"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/changelog.json": {
      "get": {
        "summary": "List all changelog",
        "operationId": "list_changelog",
        "tags": [
          "changelog"
        ],
        "responses": {
          "200": {
            "description": "Array of changelog",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ChangelogEntry"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Item": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "aliases": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "type": "string",
            "enum": [
              "personal-electronics",
              "medication-controlled",
              "medication-otc",
              "cannabis-cbd",
              "tobacco-nicotine",
              "alcohol",
              "food-agricultural",
              "currency-precious",
              "weapons-defense",
              "vehicles",
              "textiles",
              "cosmetics",
              "commercial-electronics",
              "commercial-industrial",
              "counterfeit-ip",
              "cultural-heritage"
            ]
          },
          "description": {
            "type": "string"
          },
          "commonlySearchedWith": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "generalNotes": {
            "type": "string"
          },
          "riskLevel": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "hsCodes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "description"
              ],
              "additionalProperties": false
            }
          },
          "alternativesAllowedSlugs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "regulatoryTrend": {
            "type": "string",
            "enum": [
              "tightening",
              "stable",
              "loosening"
            ]
          },
          "regulatoryTrendEvidence": {
            "type": "string"
          },
          "excisable": {
            "type": "boolean"
          },
          "excisableJurisdictions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "ageRestricted": {
            "type": "object",
            "properties": {
              "minAge": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "jurisdictions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "minAge",
              "jurisdictions"
            ],
            "additionalProperties": false
          },
          "aliasesByLanguage": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "lastUpdated": {
            "type": "string"
          },
          "sourceUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "slug",
          "name",
          "aliases",
          "category",
          "description",
          "commonlySearchedWith",
          "generalNotes",
          "riskLevel"
        ],
        "additionalProperties": false
      },
      "Country": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "iso3": {
            "type": "string"
          },
          "flag": {
            "type": "string"
          },
          "region": {
            "type": "string",
            "enum": [
              "europe",
              "asia-pacific",
              "middle-east",
              "americas",
              "africa",
              "oceania"
            ]
          },
          "customsAuthority": {
            "type": "string"
          },
          "customsAuthorityUrl": {
            "type": "string"
          },
          "dutyFreeAllowance": {
            "type": "object",
            "properties": {
              "alcoholLiters": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cigarettes": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "personalGoodsUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notes": {
                "type": "string"
              },
              "goodsLocal": {
                "type": "string"
              },
              "alcoholDetail": {
                "type": "string"
              },
              "tobaccoDetail": {
                "type": "string"
              },
              "sourceUrl": {
                "type": "string"
              },
              "sourceStatus": {
                "type": "string",
                "enum": [
                  "verified",
                  "located",
                  "directive",
                  "blocked",
                  "not_found",
                  "timeout",
                  "robots_refused"
                ]
              },
              "asOfDate": {
                "type": "string"
              },
              "verifiedFields": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "alcohol",
                    "tobacco",
                    "goods"
                  ]
                }
              },
              "quotes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "variants": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ],
                  "additionalProperties": false
                }
              },
              "sourceNote": {
                "type": "string"
              }
            },
            "required": [
              "alcoholLiters",
              "cigarettes",
              "personalGoodsUSD",
              "notes"
            ],
            "additionalProperties": false
          },
          "cashDeclarationThresholdUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "cashDeclarationCurrency": {
            "type": "string"
          },
          "deMinimisImport": {
            "type": "object",
            "properties": {
              "thresholdUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "thresholdLocalCurrency": {
                "type": "string"
              },
              "asOfDate": {
                "type": "string"
              },
              "notes": {
                "type": "string"
              }
            },
            "required": [
              "thresholdUSD",
              "thresholdLocalCurrency",
              "asOfDate",
              "notes"
            ],
            "additionalProperties": false
          },
          "restrictedCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "prohibitedCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "specialNotes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "postingRestrictions": {
            "type": "string"
          },
          "vatRateStandard": {
            "type": "number"
          },
          "vatRate": {
            "type": "string"
          },
          "vatNotes": {
            "type": "string"
          },
          "importDocumentation": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lastVerified": {
            "type": "string"
          },
          "airports": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "iata": {
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 3
                },
                "name": {
                  "type": "string"
                },
                "customsNotes": {
                  "type": "string"
                }
              },
              "required": [
                "iata",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "landBorders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "neighbouringCountrySlug": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "notes": {
                  "type": "string"
                }
              },
              "required": [
                "neighbouringCountrySlug",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "exportRules": {
            "type": "object",
            "properties": {
              "notes": {
                "type": "string"
              },
              "restrictedCategories": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "prohibitedCategories": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "prearrivalApps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "requiredFor": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "appliesTo": {
                  "type": "string"
                },
                "mandatory": {
                  "type": "boolean"
                }
              },
              "required": [
                "name",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "preArrivalApps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "requiredFor": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "appliesTo": {
                  "type": "string"
                },
                "mandatory": {
                  "type": "boolean"
                }
              },
              "required": [
                "name",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "declarationFormLanguages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "currencyCode": {
            "type": "string"
          },
          "currencyName": {
            "type": "string"
          },
          "formalDeclarationFormName": {
            "type": "string"
          },
          "importDocuments": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "overview": {
            "type": "string"
          },
          "sourceUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "localScriptName": {
            "type": "string"
          },
          "topInboundOriginCountries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "date": {
                  "type": "string",
                  "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$"
                },
                "change": {
                  "type": "string"
                },
                "sourceUrl": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "date",
                "change"
              ],
              "additionalProperties": false
            }
          },
          "knownScams": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "summary": {
                  "type": "string"
                },
                "sourceUrl": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "summary"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "slug",
          "name",
          "code",
          "iso3",
          "flag",
          "region",
          "customsAuthority",
          "customsAuthorityUrl",
          "dutyFreeAllowance",
          "cashDeclarationThresholdUSD",
          "cashDeclarationCurrency",
          "deMinimisImport",
          "restrictedCategories",
          "prohibitedCategories",
          "specialNotes",
          "postingRestrictions",
          "vatRateStandard",
          "importDocumentation",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "Rule": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "itemSlug": {
            "type": "string"
          },
          "countrySlug": {
            "type": "string"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "traveling",
              "posting",
              "importing-personal",
              "importing-commercial"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "allowed",
              "restricted",
              "prohibited",
              "unknown"
            ]
          },
          "statusSummary": {
            "type": "string"
          },
          "details": {
            "type": "string"
          },
          "quantityLimits": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "documentationRequired": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "dutyRate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "legalReference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sourceUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "practicalAdvice": {
            "type": "string"
          },
          "relatedRules": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lastVerified": {
            "type": "string"
          },
          "penalties": {
            "type": "object",
            "properties": {
              "fineMin": {
                "anyOf": [
                  {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fineMax": {
                "anyOf": [
                  {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fineCurrency": {
                "type": "string"
              },
              "prisonMaxMonths": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "civilOnly": {
                "type": "boolean"
              },
              "criminal": {
                "type": "boolean"
              },
              "recentProsecutionUrl": {
                "type": "string",
                "format": "uri"
              },
              "recentProsecutionDate": {
                "type": "string",
                "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$"
              },
              "notes": {
                "type": "string"
              },
              "statute": {
                "type": "string"
              },
              "sourceUrl": {
                "type": "string",
                "format": "uri"
              },
              "fineUnlimited": {
                "type": "boolean"
              },
              "prisonLife": {
                "type": "boolean"
              },
              "citations": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "provision": {
                      "type": "string",
                      "minLength": 3
                    },
                    "quote": {
                      "type": "string",
                      "minLength": 20
                    },
                    "sourceUrl": {
                      "type": "string",
                      "format": "uri"
                    },
                    "note": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "provision",
                    "quote",
                    "sourceUrl"
                  ],
                  "additionalProperties": false
                }
              },
              "citationsCheckedOn": {
                "type": "string",
                "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$"
              }
            },
            "additionalProperties": false
          },
          "enforcement": {
            "type": "string",
            "enum": [
              "active",
              "occasional",
              "rare",
              "unknown"
            ]
          },
          "atAirportProcedure": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "step": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "action": {
                  "type": "string"
                }
              },
              "required": [
                "step",
                "action"
              ],
              "additionalProperties": false
            }
          },
          "transitException": {
            "type": "object",
            "properties": {
              "allowedInTransit": {
                "type": "boolean"
              },
              "conditions": {
                "type": "string"
              }
            },
            "required": [
              "allowedInTransit"
            ],
            "additionalProperties": false
          },
          "departureRule": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "allowed",
                  "restricted",
                  "prohibited",
                  "unknown"
                ]
              },
              "statusSummary": {
                "type": "string"
              },
              "details": {
                "type": "string"
              },
              "quantityLimits": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "documentationRequired": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "status",
              "statusSummary"
            ],
            "additionalProperties": false
          },
          "abandonmentOption": {
            "type": "object",
            "properties": {
              "canSurrender": {
                "type": "boolean"
              },
              "processNotes": {
                "type": "string"
              }
            },
            "required": [
              "canSurrender"
            ],
            "additionalProperties": false
          },
          "forPersona": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "tourist",
                "expat",
                "transit",
                "returning-citizen",
                "diplomatic"
              ]
            }
          },
          "confidence": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low"
            ]
          },
          "confidenceReasoning": {
            "type": "string"
          },
          "changedFrom": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "fromStatus": {
                  "type": "string",
                  "enum": [
                    "allowed",
                    "restricted",
                    "prohibited",
                    "unknown"
                  ]
                },
                "toStatus": {
                  "type": "string",
                  "enum": [
                    "allowed",
                    "restricted",
                    "prohibited",
                    "unknown"
                  ]
                },
                "date": {
                  "type": "string",
                  "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$"
                },
                "note": {
                  "type": "string"
                },
                "sourceUrl": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "fromStatus",
                "toStatus",
                "date"
              ],
              "additionalProperties": false
            }
          },
          "reviewStatus": {
            "type": "string",
            "enum": [
              "verified",
              "unverified"
            ],
            "description": "Editorial status: verified entries have been checked; unverified entries are provisional auto-classifications and are not indexed."
          }
        },
        "required": [
          "id",
          "itemSlug",
          "countrySlug",
          "purpose",
          "status",
          "statusSummary",
          "details",
          "quantityLimits",
          "documentationRequired",
          "dutyRate",
          "legalReference",
          "sourceUrls",
          "practicalAdvice",
          "relatedRules",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "Carrier": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "headquartersCountry": {
            "type": "string"
          },
          "globalReach": {
            "type": "string"
          },
          "generallyProhibited": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "restrictedRequiresDeclaration": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "prohibitedByDestination": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "weightLimitKg": {
            "type": "number"
          },
          "dimensionLimitCm": {
            "type": "string"
          },
          "tariffSourceUrl": {
            "type": "string"
          },
          "lastVerified": {
            "type": "string"
          },
          "notableRulesIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "slug",
          "name",
          "type",
          "headquartersCountry",
          "globalReach",
          "generallyProhibited",
          "restrictedRequiresDeclaration",
          "prohibitedByDestination",
          "weightLimitKg",
          "dimensionLimitCm",
          "tariffSourceUrl",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "Medication": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "commonBrandNames": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "whoScheduling": {
            "type": "string"
          },
          "travelRulesByCountry": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "allowed",
                    "restricted",
                    "prohibited",
                    "unknown"
                  ]
                },
                "requiresPermit": {
                  "type": "boolean"
                },
                "permitSource": {
                  "type": "string"
                },
                "permitSourceUrl": {
                  "type": "string"
                },
                "quantityLimit": {
                  "type": "string"
                },
                "documentationRequired": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "notes": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "requiresPermit",
                "permitSource",
                "quantityLimit",
                "documentationRequired",
                "notes"
              ],
              "additionalProperties": false
            }
          },
          "lastVerified": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "name",
          "category",
          "commonBrandNames",
          "whoScheduling",
          "travelRulesByCountry",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "Incoterm": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "fullName": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "any-mode",
              "sea-inland-waterway"
            ]
          },
          "riskTransferPoint": {
            "type": "string"
          },
          "costResponsibility": {
            "type": "string"
          },
          "buyerObligations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sellerObligations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "whenToUse": {
            "type": "string"
          },
          "whenNotToUse": {
            "type": "string"
          },
          "commonMistakes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "slug",
          "code",
          "fullName",
          "version",
          "mode",
          "riskTransferPoint",
          "costResponsibility",
          "buyerObligations",
          "sellerObligations",
          "whenToUse",
          "whenNotToUse",
          "commonMistakes"
        ],
        "additionalProperties": false
      },
      "HsChapter": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "chapter": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "commonItems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "generalNotes": {
            "type": "string"
          },
          "frequentMisclassification": {
            "type": "string"
          },
          "bindingTariffRulingUrl": {
            "type": "string"
          }
        },
        "required": [
          "chapter",
          "title",
          "commonItems",
          "generalNotes",
          "frequentMisclassification",
          "bindingTariffRulingUrl"
        ],
        "additionalProperties": false
      },
      "HsHeading": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "heading": {
            "type": "string"
          },
          "chapter": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "subheadings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "description"
              ],
              "additionalProperties": false
            }
          },
          "plainEnglish": {
            "type": "string"
          }
        },
        "required": [
          "heading",
          "chapter",
          "title",
          "subheadings"
        ],
        "additionalProperties": false
      },
      "Guide": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "estimatedReadMinutes": {
            "type": "number"
          },
          "lastUpdated": {
            "type": "string"
          },
          "summary": {
            "type": "string"
          },
          "relatedItems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relatedCountries": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "notice": {
            "type": "string",
            "enum": [
              "us-de-minimis-suspended"
            ]
          }
        },
        "required": [
          "slug",
          "title",
          "category",
          "estimatedReadMinutes",
          "lastUpdated",
          "summary"
        ],
        "additionalProperties": false
      },
      "AirportProfile": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "iata": {
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "name": {
            "type": "string"
          },
          "countrySlug": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "terminals": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "customsNotes": {
            "type": "string"
          },
          "transitNotes": {
            "type": "string"
          },
          "prearrivalApps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "knownQuirks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sourceUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lastVerified": {
            "type": "string"
          }
        },
        "required": [
          "iata",
          "name",
          "countrySlug",
          "city",
          "sourceUrls",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "AirlineCabinPolicy": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "iataCode": {
            "type": "string",
            "minLength": 2,
            "maxLength": 2
          },
          "homeCountrySlug": {
            "type": "string"
          },
          "carryOnMaxKg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "carryOnMaxDimensionsCm": {
            "type": "string"
          },
          "personalItemMaxKg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "checkedBagStandardKg": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "lithiumBatteryPolicy": {
            "type": "string"
          },
          "prohibitedItemsUrl": {
            "type": "string",
            "format": "uri"
          },
          "sourceUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lastVerified": {
            "type": "string"
          },
          "sameAs": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uri"
            }
          },
          "seoTitle": {
            "type": "string"
          },
          "h1": {
            "type": "string"
          },
          "seoDescription": {
            "type": "string"
          },
          "dangerousGoods": {
            "type": "object",
            "properties": {
              "asOfDate": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "sourceTitle": {
                "type": "string"
              },
              "sourceUrl": {
                "type": "string",
                "format": "uri"
              },
              "answer": {
                "type": "string"
              },
              "bannedEverywhere": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "bannedEverywhereNote": {
                "type": "string"
              },
              "bannedInCabin": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "bannedInCabinNote": {
                "type": "string"
              },
              "itemRules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "item": {
                      "type": "string"
                    },
                    "cabin": {
                      "type": "string",
                      "enum": [
                        "allowed",
                        "not-allowed",
                        "conditional"
                      ]
                    },
                    "cabinNote": {
                      "type": "string"
                    },
                    "checked": {
                      "type": "string",
                      "enum": [
                        "allowed",
                        "not-allowed",
                        "conditional"
                      ]
                    },
                    "checkedNote": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "item",
                    "cabin",
                    "checked"
                  ],
                  "additionalProperties": false
                }
              },
              "faq": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "q": {
                      "type": "string"
                    },
                    "a": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "q",
                    "a"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "asOfDate",
              "sourceTitle",
              "sourceUrl",
              "answer",
              "bannedEverywhere",
              "bannedInCabin",
              "itemRules",
              "faq"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "slug",
          "name",
          "homeCountrySlug",
          "carryOnMaxKg",
          "sourceUrls",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "ScenarioGuide": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "persona": {
            "type": "string",
            "enum": [
              "tourist",
              "expat",
              "transit",
              "returning-citizen",
              "diplomatic"
            ]
          },
          "summary": {
            "type": "string"
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relevantItemSlugs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relevantCountrySlugs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "relevantRuleIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sourceUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "lastVerified": {
            "type": "string"
          }
        },
        "required": [
          "slug",
          "title",
          "persona",
          "summary",
          "steps",
          "sourceUrls",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "DutyRate": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "originCountrySlug": {
            "type": "string"
          },
          "destinationCountrySlug": {
            "type": "string"
          },
          "hsChapter": {
            "type": "string"
          },
          "dutyRatePercent": {
            "type": "number"
          },
          "notes": {
            "type": "string"
          }
        },
        "required": [
          "originCountrySlug",
          "destinationCountrySlug",
          "hsChapter",
          "dutyRatePercent",
          "notes"
        ],
        "additionalProperties": false
      },
      "RoutePair": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "fromCountrySlug": {
            "type": "string"
          },
          "toCountrySlug": {
            "type": "string"
          },
          "ftaStatus": {
            "type": "string"
          },
          "ftaName": {
            "type": "string"
          },
          "topItems": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "averageParcelTransitDays": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "type": "string"
          },
          "lastVerified": {
            "type": "string"
          }
        },
        "required": [
          "fromCountrySlug",
          "toCountrySlug",
          "lastVerified"
        ],
        "additionalProperties": false
      },
      "ChangelogEntry": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "date": {
            "type": "string",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$"
          },
          "subjectType": {
            "type": "string",
            "enum": [
              "rule",
              "item",
              "country",
              "carrier",
              "medication",
              "guide",
              "incoterm",
              "duty-rate",
              "airport",
              "airline",
              "scenario",
              "route-pair",
              "hs-chapter",
              "fta",
              "sanctions-regime",
              "dg-class"
            ]
          },
          "subjectId": {
            "type": "string"
          },
          "changeType": {
            "type": "string",
            "enum": [
              "added",
              "updated",
              "corrected",
              "removed"
            ]
          },
          "summary": {
            "type": "string"
          },
          "diff": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "id",
          "date",
          "subjectType",
          "subjectId",
          "changeType",
          "summary"
        ],
        "additionalProperties": false
      }
    }
  }
}
