Skip to content

Duplicate typename issue while generating types from paypal openAPI spec #1449

Open

Description

@BackendDevZetexa

Hi,

I am trying to integrate the paypal with my ecommerce solution.
I am trying to generate client code , types from PayPal OpenAPI spec given in https://github.com/paypal/paypal-rest-api-specifications.

The particular open API i am using is , checkout_orders_v2 attached here.
checkout_orders_v2.json

When i try to generate types as shown below i get error

hvk@LAPTOP-GH4L4EUD:/mnt/c/Users/paypal-integration$ oapi-codegen -generate types -o types.go -package main checkout_orders_v2.json
error generating code: error generating type definitions: error generating code for type definitions: duplicate typename 'AuthorizationStatus' detected, can't auto-rename, please use x-go-name to specify your own name for one of them

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

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions