Inconsistent capitalisation of classnames for inputs in auto-generated code. #122
Labels
bug
Something isn't working
closing-soon
codegen
pending-response
Issue is pending response from the issue requestor
Describe the bug
Capitalisation of class names generated by InputTypeSpecBuilder is not consistent with the names used in import statements in other classes.
To Reproduce
Attach the API to the project and build. Amplify Codegen will create files for the input (Foo_bar) and the mutation (UpdateStuffMutation).
The build will fail due to the UpdateStuffMutation incorrectly referencing the input as follows:
Which AWS service(s) are affected?
Appsync / Amplify codegen (not sure where the actual bug is)
Expected behavior
The import statement in the mutation class file is capitalised to match the name of the input class file, as below:
Environment Information (please complete the following information):
(I'm aware that using underscore in input and type names is probably not the best idea, but nevertheless this inconsistent capitalisation is still a bug).
The text was updated successfully, but these errors were encountered: