Skip to content

Ship more detailed types? Codegen from OpenAPI-spec? #277

Description

@KATT

Hey gang!

Looking at the typedefs of this SDK, I see a big void of actual type-safety:

Screenshot 2022-09-12 at 16 23 05

Even looking at the docs I still don't know what different endpoints are supposed to return without actually invoking the call. The problem with that is that we won't have any reconciliation reports in our sandbox environment.

This example above is just in order to showcase and issue and grokking that is a separate issue.

Suggestion: You shouldn't need to manually write the implementation of every endpoint and instead be able to automatically generate a typesafe SDK based on your OpenAPI-schema using something like the openapi-generator.

Automating this would likely:

  • Greatly reduce the amount of effort needed to put into this SDK
  • Improve your quality of life maintaining it
  • Remove inconsistencies between the actual API & this SDK
  • Improve the experience for your customers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions