Skip to content
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

Traduzir mensagem 'must be of type object' #114

Closed
PauloGoncalvesBH opened this issue Sep 17, 2020 · 1 comment · Fixed by #118
Closed

Traduzir mensagem 'must be of type object' #114

PauloGoncalvesBH opened this issue Sep 17, 2020 · 1 comment · Fixed by #118

Comments

@PauloGoncalvesBH
Copy link
Member

Descreva o bug
A mensagem de erro de que propriedade deve ser objeto não está traduzido igual as outras mensagens.

Reproduzir
Enviar POST em /carrinhos com o seguinte corpo:

[
  null
]

O retorno será o seguinte:

{
  "value": "\"value\" must be of type object"
}

Comportamento esperado
A mensagem deve ser traduzida para algo como X deve ser objeto.

Contexto:
Versão do ServeRest: 2.9.2

Descrição técnica

Ajuste deve ser feito no arquivo montarMensagemDeErroDeSchema.js e novo teste de API deve ser criado para garantir cobertura.

@PauloGoncalvesBH PauloGoncalvesBH added the bug Something isn't working label Sep 17, 2020
@PauloGoncalvesBH PauloGoncalvesBH linked a pull request Sep 18, 2020 that will close this issue
PauloGoncalvesBH added a commit that referenced this issue Sep 18, 2020
* style: ordenar alfabeticamente os tipos de erro

* fix(montarmensagemdeerrodeschema): traduzir 'object.base'

fix #114

* chore: atualizar mocha
@PauloGoncalvesBH
Copy link
Member Author

🎉 This issue has been resolved in version 2.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant