Skip to content

Open API - connection definition file contains circular references that makes SDK generation impossible on NodeJS #52079

Open
@ABitShift

Description

@ABitShift

Topic

openapi api node sdk airbyte-server

Relevant information

Hi,

As the title suggest: it is currently impossible to generate the airbyte node SDK using api because the open api definition file contains circular references.

Reproduction:

  1. npx api install "https://github.com/airbytehq/airbyte-platform/blob/019a68c5f5445470f72506e198b992ae3cdf13a1/airbyte-api/server-api/src/main/openapi/api_documentation_connections.yaml" -i airbyte-api-connections -l ts -y
  2. see the error logs
    ⠋ Generating your SDKC:\Users\Izio\AppData\Local\npm-cache\_npx\334debcfbdc435a8\node_modules\api\dist\cli\codegen\language.js:24
            throw new Error('Sorry, this library does not yet support generating an SDK for an OpenAPI definition that contains circular references.');
    

Side node: it is very annoying having to generate a different SDK for each domains (application/sources/destinations/...), i'd prefer a concatenated and self sufficient OpenAPI file definition to generate a single Airbyte SDK.

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