-
-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoint de cadastro de produtos retornou ""\"preco\" must be a safe number - Erro number.unsafe" ao preencher "preco" com um certo valor #471
Labels
Comments
PauloGoncalvesBH
added a commit
that referenced
this issue
Apr 1, 2024
PauloGoncalvesBH
added a commit
that referenced
this issue
Apr 1, 2024
PauloGoncalvesBH
added a commit
that referenced
this issue
Apr 1, 2024
🎉 This issue has been resolved in version 2.29.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@all-contributors please add @crisnazario for bug |
I've put up a pull request to add @crisnazario! 🎉 |
PauloGoncalvesBH
pushed a commit
that referenced
this issue
Apr 1, 2024
Obrigado por reportar o bug @crisnazario 🌷. Já fiz a correção e está disponível em https://serverest.dev, v2.29.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Descreva o bug
Ao enviar a requisição com a propriedade "preco" preenchida com: 9999999999999999 foi retornada o seguinte:
"preco": ""preco" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues
Reproduzir
Etapas para reproduzir o comportamento:
O que causa a mensagem de erro são os valores preenchido na propriedade "preco", eu estava testando os limites para ver como a API iria reagir😅
{
"nome": "Bike",
"preco": 9999999999999999,
"descricao": "Mouse",
"quantidade": 381
}
Comportamento esperado
Que a aplicação retornasse uma mensagem para o usuário sobre o valor máximo que "preco" pode receber.
Capturas de tela
The text was updated successfully, but these errors were encountered: