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

pal camel-case does not convert enums to camelCase #295

Open
jason-nivelo opened this issue Mar 10, 2023 · 1 comment
Open

pal camel-case does not convert enums to camelCase #295

jason-nivelo opened this issue Mar 10, 2023 · 1 comment

Comments

@jason-nivelo
Copy link

Given a schema with both models and enums, the models only get converted to camel-case and the enums are not

@CatsMiaow
Copy link

before

model test_pushed_data {
  data_status         test_pushed_data_data_status?
  pushed_data         Json
}

enum test_pushed_data_data_status {
  ...
}

after

model TestPushedData {
  dataStatus        test_pushedData_data_status? @map("data_status")
  pushedData        Json                         @map("pushed_data")
}

enum test_pushed_data_data_status {
  ...
}

Sometimes test_pushed_data_data_status is changed to test_pushedData_data_status due to the influence of other columns.

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