acacode / acacode/swagger-typescript-api

Support for "onCreateRequestBody" hook

未关闭
#306 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
TypeScript
星标
4.1k
派生
436
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。