openapi-nodejs-sdk
openapi-nodejs-sdk copied to clipboard
š¢ A fully-featured and blazing-fast Node.js API client to interact with @OpenapiĀ®
When using the Openapi SDK inside AWS Lambda or Vercel Functions, the internal auth token is not refreshed correctly between invocations. This causes 401 Unauthorized after a few cold starts....
When API quota is reached (HTTP 429), the SDK throws an unhandled rejection instead of returning a structured error object. This crashes the Node process in production. Expected: Graceful handling...
The SDK hides important headers like X-RateLimit-Remaining and X-RateLimit-Reset. These are needed for dashboards and retry logic. Proposal: Expose them in the SDK response metadata (response.meta.rateLimit).
### šļø Hardcoded base URL prevents multi-environment deployment **Labels:** `config`, `enhancement`, `env` **Framework context:** Docker + Vercel deployments **Description:** The SDK has a hardcoded base URL (e.g., `https://api.openapi.com`). Itās impossible...
### š§ Missing browser compatibility layer **Labels:** `feature`, `isomorphic` **Framework context:** Next.js (client-side calls in `app/` or `pages/api`) **Description:** The SDK imports Node-specific modules like `fs` and `https`, making it...
### š§© Integration conflict with NestJS interceptors **Labels:** `bug`, `nestjs`, `middleware` **Framework context:** NestJS with global interceptors (e.g., LoggingInterceptor, CacheInterceptor) **Description:** When the Openapi SDK is used inside a NestJS...
### š Missing proxy configuration support **Labels:** `feature`, `network` **Library context:** Axios (proxy usage in Node.js) **Description:** In corporate or enterprise environments using `axios`, outbound HTTP calls must go through...
### ā”ļø Poor performance under concurrent requests **Labels:** `performance`, `investigation` **Framework context:** Express.js with `Promise.all()` batch requests **Description:** When performing 50+ parallel requests (e.g., bulk verification of tax codes through...
Using import Openapi from 'openapi-sdk' in an ESM project triggers a SyntaxError: Cannot use import statement outside a module. Context: Node 20+, "type": "module" set in package.json. Workaround: Use require('openapi-sdk').default,...
The autogenerated types donāt include dynamic parameters for endpoints like getCompanyById(id). When using TypeScript in NestJS, the SDK requires casting to any for most calls. Proposed fix: Extend OpenAPI schema...