skytracker.utils.geographic.country_code_validator#
- skytracker.utils.geographic.country_code_validator(code: str | None = Query(None)) str#
Validate whether a string is a valid ISO 3166-1 A-2 country code
- Parameters:
code (str) – string to parse
- Raises:
HTTPException – if string is not a valid ISO 3166-1 A-2 country code
- Returns:
valid ISO 3166-1 A-2 country code
- Return type:
str