Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Check for integer ranges in input validation for participante, plano_trabalho and plano_entregas #157

Merged
merged 18 commits into from
Jan 28, 2025

Conversation

augusto-herrmann
Copy link
Member

Fix #156

@edulauer
Copy link
Member

@augusto-herrmann, segundo a documentação do Pydantic:
https://docs.pydantic.dev/latest/api/types/#pydantic.types.FailFast

conint():
This function is discouraged in favor of using [Annotated](https://docs.python.org/3/library/typing.html#typing.Annotated) with [Field](https://docs.pydantic.dev/latest/api/fields/#pydantic.fields.Field) instead.

This function will be deprecated in Pydantic 3.0.

The reason is that conint returns a type, which doesn't play well with static analysis tools.

@augusto-herrmann augusto-herrmann merged commit 3aa43d2 into main Jan 28, 2025
1 check passed
@augusto-herrmann augusto-herrmann deleted the issue-156 branch January 28, 2025 20:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Erro no Postgres: integer out of range para entradas com números grandes
2 participants