Skip to content

Stripe.Account.retrive/1 not working in OpenAPI build #777

@marmor157

Description

@marmor157

I was testing out the new OpenAPI build and wanted to use Stripe.Account.retrieve passing an account id and it failed with the following error.

** (BadMapError) expected a map, got: "***"
    (stdlib 4.1.1) :maps.merge(%{}, "***")
    (stripity_stripe 2.17.3) lib/stripe/request.ex:98: Stripe.Request.put_params/2
    (stripity_stripe 2.17.3) lib/openapi/phases/compile.ex:199: Stripe.Account.retrieve/2
    iex:3: (file)

Code to reproduce:

Stripe.Account.retrieve("***")

Where "***" is a Stripe account id.

The test responsible for this is commented out

# test "is retrievable using plural endpoint" do

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions