Integration conflict with NestJS interceptors
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ả
🧩 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openapi/openapi-nodejs-sdk
-
config documentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
-
Rate limit headers not exposedĐang mởgood first issue help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
Tất cả issue của openapi/openapi-nodejs-sdk
Issue tương tự
-
Add: Tooncast brazil feedĐang mởcheck:passed feeds:add
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 62/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
codex-team/editor.js#3037 ·
-
No Code Attached Yet
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
joomla/joomla-cms#48626 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
complexity: trivial good first issue impact: low
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
ueberdosis/tiptap#8522 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
internal os specific
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
frostney/GocciaScript#1688 ·
Maintainer thường phản hồi trong vòng 1 ngày