Repository navigation
feat: feriados estaduais (rebase #758) - #866
Merged
Merged
Conversation
Co-authored-by: Hermes Agent <[email protected]> Ai-tool: hermes Ai-model: deepseek-v4-flash Ai-os: wsl
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This was referenced Aug 10, 2026
lucianopf
added a commit
that referenced
this pull request
Aug 10, 2026
* fix: expõe feriados estaduais na rota /feriados/v1/{ano}?uf=XX
O #866 implementou a lógica de feriados estaduais no service
(getHolidays(year, state)) com testes, mas a rota não repassava o
parâmetro UF — o recurso ficou inacessível via API.
- rota lê query uf e repassa ao service
- UF inválida → 400 JSON (invalid_uf) em vez de 500
- doc OpenAPI atualizada com param uf opcional
- testes E2E: uf=SP retorna feriado estadual; uf=XX → 400
Co-authored-by: Hermes Agent <[email protected]>
* fix: docs quebradas — schemas Class/Group/Section/Division e AddressV3 ausentes
As docs (brasilapi.com.br/docs) quebravam com 'Invalid reference token:
Class' no Redoc. Causa: os rebases #862 (CNAE) e #867 (CEP v3) trouxeram
refs #/components/schemas/Class (4x) e AddressV3 sem as definições dos
schemas — o merge do lodash deixa refs órfãs.
- ibge.json: adiciona schemas Class/Group/Section/Division (do PR original #361)
- cep.json: adiciona schema AddressV3 (derivado do AddressV2, mesmo shape)
- teste preventivo: todas as refs #/components/schemas/* resolvem na spec completa
Co-authored-by: Hermes Agent <[email protected]>
* test: skip quando IBGE bloqueia o runner (ibge-populacao-fix)
O teste merged no #881 faz chamada real ao IBGE — no runner do GH
Actions o provider bloqueia e o teste estoura timeout de 60s,
derrubando o E2E de TODOS os PRs. Aplicando o padrão health-check +
describe.skipIf usado nos outros testes de providers (#868/#869).
Co-authored-by: Hermes Agent <[email protected]>
---------
Co-authored-by: Hermes Agent <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Rebase do #758 sobre a main (conflitos triviais no lock/vite resolvidos). Cálculo local de feriados estaduais no serviço de feriados (TDD — 20/20 testes). Autoria original preservada. #758 fechado em favor deste.