{{ message }}
Repository navigation
Conversation
…ultativos Carnaval (2 dias) e Corpus Christi deixam de ser 'national' e passam a 'facultative', alinhado à Lei 9.093/1995 (pontos facultativos). Páscoa e Sexta-feira Santa permanecem 'national'. Datas inalteradas e enum atualizado na doc. /diasuteis casa feriado por data (não por type), então não quebra. Co-authored-by: Hermes Agent <noreply@nousresearch.com>
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.




Closes #411
Mudança
Carnaval (2 dias, segunda e terça) e Corpus Christi passam de
type: "national"paratype: "facultative"no/api/feriados/v1/{ano}— legalmente são pontos facultativos (Lei 9.093/1995), não feriados nacionais.services/holidays/index.js: reclassifica os 3 registros (Carnaval ×2 + Corpus Christi). Páscoa e Sexta-feira Santa permanecemnational.typemuda.holydays.json: enum do campotypeatualizado (national,state,facultative) — edição cirúrgica.Compatibilidade
/diasuteis/v1casa feriado por data (não portype) → sem quebra.type === 'national'(verificado por grep emservices/ pages/ lib/ util/).type === 'national'para calcular dias úteis passa a tratar Carnaval/Corpus Christi corretamente (comportamento legalmente correto).Testes (TDD)
tests/feriados/getHolidays.test.js): Carnaval/Corpus Christi →facultative; Páscoa/Sexta Santa →national.tests/feriados-v1.test.js): mesmo contrato via HTTP.tests/helpers/feriados/index.jssincronizada (E2E compara contra ela comtoEqual).tests/docs-spec-refs.test.js) verde; ESLint verde nos arquivos modificados quanto às linhas novas.