swagger-typescript-api icon indicating copy to clipboard operation
swagger-typescript-api copied to clipboard

Support for "onCreateRequestBody" hook

Open slinkardbrandon opened this issue 3 years ago • 0 comments

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 hook is defined.

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

slinkardbrandon avatar Oct 15 '21 18:10 slinkardbrandon