openapi-fetch-otel-fix
TypeScript icon, indicating that this package has built-in type declarations

0.9.2-otel-fix.7 • Public • Published

This is a fork of the original openapi-fetch library by drwpow. The original library is a great tool for generating TypeScript types from OpenAPI 3.0 definitions. However, it has some limitations and bugs that I wanted to fix.

This should be used at your own risk, as it is not as well tested as the original library.

Changes

  • Modified lines 113-114 of src/index.js to pass a path and requestInit instead of the request object that the original library was using. This fixes an error when OpenTelemetry is used with the client that this library generates.
  • This, in effect, disables request middleware functionality. This is a trade-off that I was willing to make, as I was not using the middleware functionality and it was causing errors.

Package Sidebar

Install

npm i openapi-fetch-otel-fix

Weekly Downloads

47

Version

0.9.2-otel-fix.7

License

MIT

Unpacked Size

185 kB

Total Files

18

Last publish

Collaborators

  • dan-muller