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

Deprecation warning no tratamento de erros  #1

Description

@everton

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions