Skip to content

Patch #379 since the config was not valid - #391

Merged
Aniruddh Munde (Aniruddh25) merged 2 commits into
mainfrom
patch-379
May 6, 2022
Merged

Patch #379 since the config was not valid#391
Aniruddh Munde (Aniruddh25) merged 2 commits into
mainfrom
patch-379

Conversation

@gledis69

@gledis69 Gledis Zeneli (gledis69) commented May 6, 2022

Copy link
Copy Markdown
Contributor

This was my mistake.
I did not rerun the application after I did the merge with main, I only ran the tests.
If I had run the application, I would have seen that the config was not valid and the run is unsuccessful.

This PR fixes the config, but also adds a test to check if the config is valid or not so this scenario does not repeat again.

The issue was that due to change in GraphQLBuilder.FormatNameForObject function I switched to GraphQLBuilder.FormatNameForField which does not capitalize the first letters of the name. That was causing the config validator to fail.
I decided to remove this completely since the gql type capitalization (whatever was decided by the schema generation or the user directly) should be appropriate to use to name [TypeName]FilterInput and [TypeName]OrderByInput input types without any extra formatting.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the test

@Aniruddh25
Aniruddh Munde (Aniruddh25) deleted the patch-379 branch May 6, 2022 19:44
Aaron Powell (aaronpowell) pushed a commit that referenced this pull request May 10, 2022
This was my mistake.
I did not rerun the application after I did the merge with main, I only ran the tests.
If I had run the application, I would have seen that the config was not valid and the run is unsuccessful.

This PR fixes the config, but also adds a test to check if the config is valid or not so this scenario does not repeat again.

The issue was that due to change in GraphQLBuilder.FormatNameForObject function I switched to GraphQLBuilder.FormatNameForField which does not capitalize the first letters of the name. That was causing the config validator to fail.
I decided to remove this completely since the gql type capitalization (whatever was decided by the schema generation or the user directly) should be appropriate to use to name [TypeName]FilterInput and [TypeName]OrderByInput input types without any extra formatting.
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

Successfully merging this pull request may close these issues.

2 participants