acacode / acacode/swagger-typescript-api

Support for "onCreateRequestBody" hook

Đang mở
#306 0 bình luận 1 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
TypeScript
Star
4.1k
Fork
436
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hello! Thank you everyone for this amazing library, its been working wonderfully for me. I have a few features in mind for the library but one simple add might be a couple new hooks that allow us to modify type generation. It took me a while to figure out why the `onCreateRequestParams` hook was not firing on my apis (they take `body` rather than `query`). I'd like to be able to easily hook into the type creation for requests if possible.

Here is where the [onCreateRequestParams](https://github.com/acacode/swagger-typescript-api/blob/35b08b114be05a5163861f3a1570477bd577d672/src/routes.js#L279) hook is defined.

Does this seem like a reasonable solution or should I consider a different route for supporting what I need?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.