oapi-codegen
oapi-codegen copied to clipboard
fix: #1538 add hasPrefix and hasSuffix template funcs
As a side note, these differ from the sprig template functions (see #1536 where sprig is discussed) in parameter ordering. I believe this is to allow pipe-lining easier in the templates. In sticking with sprig ordering, vs making the template functions added better match their golang counterparts, I think I lean slightly towards the latter.