Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Integration conflict with NestJS interceptors

Đang mở
#8 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
node.js, typescript
Lĩnh vực
backend-api-design

Hướng nghiên cứu

Start by locating the SDK initialization and Axios instance setup, then check how NestJS consumers provide dependencies and how existing tests cover request configuration. Determine whether initialization can accept a caller-provided Axios instance; done means SDK requests use that instance while existing initialization still works. The payload names no files or tests, so locate them in the repository.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug nestjs
🧩 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 provider or service, global interceptors fail to intercept outbound requests.
This happens because the SDK overrides the internal Axios instance, bypassing Nest’s dependency injection and middleware hooks.

Workaround:
Manually wrap SDK calls in a custom Axios adapter — cumbersome and breaks the standard NestJS DI pattern.

Proposal:
Allow injection of a custom axios instance during initialization:

Openapi.configure({ httpClient: myAxiosInstance });
Ngôn ngữ chính
JavaScript
Star
20
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openapi/openapi-nodejs-sdk

Tất cả issue của openapi/openapi-nodejs-sdk

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.