Skip to content

Options for multiple formats? #2

Description

@mrgnhnt96

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions