BitGo / api-ts

Type- and runtime- safe TypeScript APIs
https://bitgo.github.io/api-ts
Other
15 stars 21 forks source link

feat: consolidate unknown unions with well defined codecs #861

Closed ad-world closed 1 month ago

ad-world commented 1 month ago

DX-644

This is a change to consolidate unknown unions in the openapi generator. For example, if we have something like this:

t.union([WellDefinedCodec, t.unknown]) then it doesn’t make sense to pass through the t.unknown codec into the API docs, as we have our ‘best guess’ shape of the data present as well. This is a ticket to filter out these unknowns as they aren’t required, and add bloat to the generator’s output.

github-actions[bot] commented 1 month ago

:tada: This PR is included in version @api-ts/openapi-generator@4.28.0 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 month ago

:tada: This PR is included in version @api-ts/express-wrapper@1.0.28 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 month ago

:tada: This PR is included in version @api-ts/typed-express-router@1.1.8 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 month ago

:tada: This PR is included in version @api-ts/superagent-wrapper@1.2.3 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

github-actions[bot] commented 1 month ago

:tada: This PR is included in version @api-ts/io-ts-http@3.1.0 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket: