Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Entity replace substring, instead of naming template #189

Open
AndrewSB opened this issue May 16, 2023 · 1 comment
Open

FR: Entity replace substring, instead of naming template #189

AndrewSB opened this issue May 16, 2023 · 1 comment

Comments

@AndrewSB
Copy link

i see that it's possible to have a full rename dictionary for entities, but is it possible to just replace a substring? from the swagger i'm using, most of my models have the suffix PydanticModel that i'd like to replace with something else (like perhaps ServerModel or DTO or something).

is there a config option that can match a substring of an entity and replace it with another word?

@LePips
Copy link
Contributor

LePips commented May 24, 2023

There is only the naming template, which is only additive. This seems like a good feature request.

https://github.com/CreateAPI/CreateAPI/blob/main/Docs/ConfigOptions.md#entitiesnametemplate

@AndrewSB AndrewSB changed the title Entity: replace substring FR: Entity replace substring, instead of naming template May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants