pagarme / pagarme-nodejs-sdk

Other
22 stars 13 forks source link

Expected value to be of type 'Nullable<string>' but found 'number'.\n #24

Closed zevjr closed 7 months ago

zevjr commented 9 months ago

currently, within the "checkout" payment method, the response contained within the Path: checkouts › 0 › credit_card › installments › 0 is no longer Nullable<string>, in the api the response is Nullable. error:

  errors: [
    {
      value: 1,
      type: 'Nullable<string>',
      branch: [Array],
      path: [Array],
      message: "Expected value to be of type 'Nullable<string>' but found 'number'.\n" +
        '\n' +
        'Given value: 1\n' +
        "Type: 'number'\n" +
        "Expected type: 'Nullable<string>'\n" +
        'Path: checkouts › 0 › credit_card › installments › 0 › number'
    }
  ]
zevjr commented 9 months ago

PR FIX - https://github.com/pagarme/pagarme-nodejs-sdk/pull/23

VinnyLima commented 8 months ago

Olá, estou passando pelo mesmo problema na versão 6.8.1, abaixo o error apresentando! Aparantemente vocês ja corrigiram, mas não consigo baixar a versão 6.8.2!


    {
      value: 1,
      type: 'Nullable<string>',
      branch: [Array],
      path: [Array],
      message: "Expected value to be of type 'Nullable<string>' but found 'number'.\n" +
        '\n' +
        'Given value: 1\n' +
        "Type: 'number'\n" +
        "Expected type: 'Nullable<string>'\n" +
        'Path: checkouts › 0 › credit_card › installments › 0 › number'
    }
  ]~~~
VinnyLima commented 8 months ago

Foi realizada a subida da versão 8.6.2 mas mesmo assim não corrigiu esse error!

andreals commented 7 months ago

Problema resolvido na versão 6.8.4