Skip to content

Ability to override some types through configuration. ex: Task, Attribute #955

@MaheshB0ngani

Description

@MaheshB0ngani

Is your feature request related to a problem? Please describe.
Is there a way to override some types in OpenAPI to generate with a new name while generating with Refitter?
ex: Task, Attribute types to be renamed as we wanted if they exist in the OpenAPI specification.

Describe the solution you'd like
Situation: I have to generate a client for a 3rd party OpenAPI specification. where I cannot edit the types in it, and do not control the OpenAPI specification. It has a few types, like Task and Attribute in the specification, those types we already have in the C# libraries. I would like to add overrides whenever those types exist in OpenAPI, something like AnotherTask, AnotherAttribute, bla bla...

Describe alternatives you've considered
If I had to edit the generated code, it is volatile, and the changes do not persist if I re-run the refitter. I have added refitter as part of the build.

Metadata

Metadata

Labels

enhancementNew feature, bug fix, or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions