How to add a transformer? #1039
Unanswered
nickclassdojo
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@nickclassdojo can you provide your config and an example code you're looking to generate/use? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on reading the docs, I assumed that I would be able to add a transformer and pass this to the generation via some CLI option to change the output of the generated code (https://heyapi.vercel.app/openapi-ts/transformers.html). The docs don't explain how to add one, just how to add an existing internal one for dates. Is this something that's possible? My use case would be something along the lines of wrapping the return of a service function in some
Result
type.Beta Was this translation helpful? Give feedback.
All reactions