oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Add hasPrefix and hasSuffix template funcs

Open maks56893 opened this issue 1 year ago • 2 comments

I'm trying use custom generate templates and want to add some methods for only response models. For define what is request or response I have suffixes for models. But for now I can't define it in template

maks56893 avatar Apr 12 '24 12:04 maks56893

Would be happy to review a PR to add them to the TemplateFunctions

(Although needs better documenting in #1487, an alternate path for now is to add them to call oapi-codegen as a library, where you can modify this in your own code)

jamietanna avatar Apr 15 '24 08:04 jamietanna

here is PR

maks56893 avatar Apr 15 '24 09:04 maks56893