Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Deprecation warning no tratamento de erros #1

Open
everton opened this issue Sep 17, 2014 · 0 comments
Open

Deprecation warning no tratamento de erros #1

everton opened this issue Sep 17, 2014 · 0 comments

Comments

@everton
Copy link

everton commented Sep 17, 2014

Quando uma requisição de criação de boleto gera erros (Cobregratis::BankBillet.create), o JSON retornado pela API esta em um formato deprecado pela ActiveRersource, o que gera um "DEPRECATION WARNING".

Hoje o JSON esta retornando nesse formato:

{"cnpj_cpf":["número inválido"]}

O que gera o warning:

DEPRECATION WARNING: Returning errors as a hash without a root "errors" key is deprecated.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant