Skip to content

BazaRb#transfer accepts non-string idempotency badges #471

Description

@gemshrine

BazaRb#transfer accepts a non-string idempotency badge.

Steps to reproduce

baza.transfer("recipient", 1.0, "test", badge: 42)

Actual result

The client accepts the integer and includes it in the request body. The public API documents badge as a String, and a non-string badge can fail later during request encoding or be interpreted differently by the server. BazaRb::Fake already rejects this input.

Expected result

BazaRb#transfer should validate badge as a String before making a request and return a clear argument error for other types.

The affected code is BazaRb#transfer in lib/baza-rb.rb.

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