Skip to content

Add hasPrefix and hasSuffix template funcs #1538

Open

Description

@maks56893

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

Activity

  1. added
    enhancementNew feature or request
    help wantedExternal contributions would be very much appreciated!
    on Apr 15, 2024
  2. jamietanna commented on Apr 15, 2024

    @jamietanna
    Member

    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)

  3. maks56893 commented on Apr 15, 2024

    @maks56893
    Author

    here is PR

  4. yakovlef commented on Nov 5, 2026

    @yakovlef

    hi, is this still relevant? dont see hasPrefix/hasSuffix in TemplateFunctions on main and old PR was closed. can send small PR with tests if ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExternal contributions would be very much appreciated!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions