diff options
| author | Murilo Ijanc <[email protected]> | 2026-07-27 20:35:12 -0300 |
|---|---|---|
| committer | Murilo Ijanc <[email protected]> | 2026-07-27 20:35:12 -0300 |
| commit | 2ed1190f0f021bc4de17b47d8d4ed7241611d6f1 (patch) | |
| tree | 221a8ba542c35ec66b4c79805067749e78c5e03f /.gitignore | |
| parent | ae9ad8a4c61b793f6859c84dac80b1c1b04b7b68 (diff) | |
| download | lisp-2ed1190f0f021bc4de17b47d8d4ed7241611d6f1.tar.gz | |
A CEP that fails is rarely random: it is someone who knows the city and
guessed the number, most often the -000 that 957 municipalities never
received. The API now answers that 404 with the municipality owning the
band the CEP falls in, and without it every caller can say no more than
"does not exist" to a person who is one digit away from the right CEP.
It lands on the condition rather than in a return value because it is
context for the failure and nothing else: the answer is still a 404, and
a faixa must never read as an address that resolved. Parsing it is
deliberately defensive for the same reason — a missing, malformed or
empty block yields NIL, so a field that only adds context cannot turn a
clean not-found into a parse failure, and an older API stays supported.
The ends of the band are the CEPs that actually exist, not the bounds
the Correios publish, and the band is sparse; the docstrings and the
README say so, because presenting the pair as a range of valid CEPs is
the mistake this data invites.
models is compiled before errors so the report function can name the
faixa's municipality.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions