Skip to content

Custom Name Normalizer? #1766

Open
Open

Description

@lcrownover

I couldn't find anything in the existing issues for this, but I'm hoping it's possible somehow.

The API I'm generating against has endpoints that are versioned:

"/slurm/v0.0.41/nodes/": { ... }

And the outputted types are then named:

V0041OpenapiNodesResp

I want to be able to strip out the V0041 from all the types. I can do this pretty easily with awk, but I don't want to introduce more build dependencies unless necessary. Is there a built-in way to create my own name-normalizer function that I can reference in my config.yml file?

Activity

  1. UVduane commented on Sep 23, 2024

    @UVduane

    I have a similar thing where every API endpoint for the API is prefixed with /web/api/v2.1 and all of the functions come out named WebApixxxxx

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions