Skip to content

fix(an-web): update typings to accept json without field#98

Merged
igr-santos merged 2 commits intomainfrom
hotfix/bonde-an-integration
Mar 11, 2025
Merged

fix(an-web): update typings to accept json without field#98
igr-santos merged 2 commits intomainfrom
hotfix/bonde-an-integration

Conversation

@igr-santos
Copy link
Contributor

@igr-santos igr-santos commented Mar 11, 2025

Contexto
Haviam entradas inválidas na API de Normalização, isso acontecia por existir um campo JSON em determinadas tabelas de ações que podem ter diferentes estruturas, o Pydantic não estava considerando que o campo poderia não existir no JSON, apenas que deveria existir mas com valor nulo, como isso não é uma verdade e tem casos que o campo não existe foi preciso forçar valores que podem ser nulo diretamente no Pydantic.

@igr-santos igr-santos self-assigned this Mar 11, 2025
@igr-santos igr-santos requested a review from sergiomario March 11, 2025 17:02
@igr-santos igr-santos merged commit 8cf71ee into main Mar 11, 2025
3 checks passed
@igr-santos igr-santos deleted the hotfix/bonde-an-integration branch March 11, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants