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

Specifying prefix / suffix for flow type #62

Open
mattgstevens opened this issue Oct 14, 2020 · 1 comment
Open

Specifying prefix / suffix for flow type #62

mattgstevens opened this issue Oct 14, 2020 · 1 comment

Comments

@mattgstevens
Copy link

I was very pleased to find this library as it does a nice job of generating flow types from an OpenApi schema.

One thing that is missing for me is being able to change the name of the flow type to include a prefix or suffix (different projects I have worked on use one or the other).

ie. changing a schema definition named User:

  • with a type prefix like TUser
  • with a type suffix like UserT

I think this would be covered by adding two additional arguments to the program to take a string and modify the name in all definitions & "$ref" positions.

Are you be open to a PR that addresses this?

@cloudle
Copy link

cloudle commented Dec 9, 2020

Created pull request, hope it will be merge/release on npm soon.

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