[REQ] Please add `endsWith` helper for handlebars templates
Created by: averche
Is your feature request related to a problem? Please describe.
I would like to conditionally generate code using handlebars templates for tags ending with a specific value.
Today, the openapi-generator supports startsWith but not the equivalent endsWith helper function:
Describe the solution you'd like
Support for a helper endsWith that acts just like the startsWith but for suffixes would be ideal:
{{#endsWith myTag "my-suffix"}}
yes
{{else}}
no
{{/endsWith}}
Describe alternatives you've considered
I've tried using an approximate solution of {{#neq myTag (cut myTag "my-suffix")}} in my handlebars templates. Unfortunately this doesn't work as expected (it always returns true).