0.9.2-otel-fix.7 • Published 1 year ago

openapi-fetch-otel-fix v0.9.2-otel-fix.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.