-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Support member name transformers #17
Comments
Steps: step 2 defmodule AshJsonApi.MemberNameTransformer.CamelCase do
@behaviour AshJsonAPi.MemberNameTransformer
def transform_out(snake_case) do
convert_snake_case_to_camelcase(snake_case)
end
def transform_in(camel_case) do
convert_camel_case_to_snake_case(camel_case)
end
end I mean, also maybe |
@zachdaniel I added our discussion here, so maybe other people can benefit. I will try to do this |
Good call putting the chat here 👍 The final step of this will be to use the member name transformer throughout the application. Specifically, in |
I should be able to tackle this by in the next 3 weeks. If somebody can jump in soon just ping me! |
Currently, everything is
snake_case
but we want to let users configure a name transformer at the API level, to turn everything into kebab case or camelcase.The text was updated successfully, but these errors were encountered: