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

Tagged type for IDs? #188

Closed
AndrewSB opened this issue May 16, 2023 · 2 comments
Closed

Tagged type for IDs? #188

AndrewSB opened this issue May 16, 2023 · 2 comments

Comments

@AndrewSB
Copy link

hey! just started using this now, i'm blown away by how good swift codegen from swagger has got in the last few years

had 2 questions as i was setting this up

  1. for my ID types, i enjoy using something like https://github.com/pointfreeco/swift-tagged instead of raw Ints or Strings. is there any way to accomplish that using this generator today?
  2. see FR: Entity replace substring, instead of naming template #189
@LePips
Copy link
Contributor

LePips commented May 24, 2023

You can possibly use the trick to change the format for dataTypes to a tagged type in #176 or possibly wait for #177. I have used the format trick in my API and it just requires a preprocessing step to change those formats.

@AndrewSB
Copy link
Author

i like #177, i'll wait for that. thanks @LePips. i'll watch that and close this one out in favor of that

@AndrewSB AndrewSB closed this as not planned Won't fix, can't repro, duplicate, stale 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