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

Options for multiple formats? #2

Open
mrgnhnt96 opened this issue Oct 11, 2021 · 0 comments
Open

Options for multiple formats? #2

mrgnhnt96 opened this issue Oct 11, 2021 · 0 comments

Comments

@mrgnhnt96
Copy link
Owner

mrgnhnt96 commented Oct 11, 2021

Would it be helpful to specify formats that fields should be generated in?

for example

// Class is/is not annotated with `additionalFormats: []` (default)
Example.fields.firstName // returns 'firstName'

// Class is annotated with `additionalFormats: [FieldRename.snake, FieldRename.kebab]`
Example.fields.defaults.firstName // returns 'firstName'
Example.fields.snake.firstName // returns 'first_name'
Example.fields.kebab.firstName // returns 'first-name'
@mrgnhnt96 mrgnhnt96 changed the title Options for different formats? Options for multiple formats? Oct 11, 2021
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

1 participant