Skip to content

[Feature] add support for changing model property casing #1252

Open
@tolgap

Description

@tolgap

Some of us are "forced" to use APIs that accept and return PascalCase models.

It would be amazing if a --transformModelCase option was added. It would support snake, pascal, camel.

It would allow us to change a model from:

interface MyModel {
  Id: string;  
}

to

interface MyModel {
  id: string;
}

Of course, if casings are changed at the model level, this needs to be "reset" at the body/query level as well. Another option for this could be provided: --transformRequestCase and/or --transformResponseCase.

Or perhaps someone else has a better idea on how this could be achieved. I would love to know if anyone managed to get around this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions