Improve handling of default value in responses for successful status codes
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- openapi, typescript
Hướng nghiên cứu
Start by locating the generator's handling of OpenAPI response defaults and how it decides whether a response is successful when no 200 schema is defined. Review the generator documentation or README and the CHANGELOG or user guide for the relevant response behavior. Done means the default is treated as a successful response in this case and the behavior is documented.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
I have noticed a potential issue with your OpenAPI code generator regarding the interpretation of the default value in the responses section.
The problem is that when there is no explicitly defined schema for the 200 status, the default value is considered as an error/unsuccessful response, whereas it would be logical to consider it as a successful response.
I propose the following changes:
-
Improved interpretation of default: Make the default value be treated as a successful response when there are no explicitly defined schemas for the 200 status. This aligns with standard practice and meets developers' expectations for API responses.
-
Documentation update: Clarify in the generator's documentation or README file how the default value is handled and how developers can use it for successful responses.
-
Explain the changes: Describe in the CHANGELOG file or user guide that changes have been made regarding the interpretation of default and what benefits it brings.
The interpretation of the default value in the responses section is crucial for a proper understanding of API response schemas and the generation of client-side code that handles responses according to expectations. Clarifying this aspect will help developers make more effective use of your generator.
Thank you for your work on this generator, and I hope that the proposed changes will be considered.
- Ngôn ngữ chính
- TypeScript
- Star
- 635
- Fork
- 82
- 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
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 fabien0102/openapi-codegen
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fabien0102/openapi-codegen#343 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fabien0102/openapi-codegen#342 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
fabien0102/openapi-codegen#356 ·
-
update dependencies & removed unused deprecatedCó thể đã có người làm @el-j đã nhận 16 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
fabien0102/openapi-codegen#354 ·
-
deepMerge mutates its arguments, corrupting request payloads across callsCó thể đã có người làm @richard-willis-chevin đã nhận 60 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
fabien0102/openapi-codegen#349 ·
Tất cả issue của fabien0102/openapi-codegen
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Nimblesite/SharpLsp#468 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Bundled uv is never updated and trusts the compromised eMudhra certificatesCó thể đã có người làm @FabienDanieau đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bg_wait's blocking mode (stopOnAttention: false) is under-documented and effectively undiscoverableĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
nicobailon/pi-subagents#3019 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
db-ux-design-system/core-web#8613 ·
Maintainer thường phản hồi trong vòng 1 ngày