Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce sdk-types from developer portal #4154

Conversation

mmcshinsky-bitgo
Copy link
Contributor

Experimental proposal to use the openapi spec from https://developers.bitgo.com as a source of truth for types. Much of the SDK interacts with the API layer but miss out on consistent and non-manually written types. Using the published API can also help reduce a lot of the any types as well of which users have regularly complained about in the past.

Since the developer portal is the central spec system published for requests and responses, @bitgo/sdk-types or @bitgo/sdk-openapi can be published alongside as needed @bitgo/public-types.

Included is a small example usage of what it would or could look like to replace manual types inside a module.

Open to probably a lot of feedback on peoples thoughts around this.

PX-000000

TICKET: PX-000000

@mmcshinsky-bitgo mmcshinsky-bitgo force-pushed the PX-000000/mmcshinsky-use-developer-portal-types branch from 085f899 to 44c216e Compare December 13, 2023 23:19
Copy link
Contributor

@OttoAllmendinger OttoAllmendinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but ci errors

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

Successfully merging this pull request may close these issues.

2 participants