-
Notifications
You must be signed in to change notification settings - Fork 61
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
feature: Add suffix to schema type filenames #580
Conversation
✅ Deploy Preview for eclectic-pie-88a2ba ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Docs preview readyThe preview is ready to be viewed. View the preview File Changes 0 new, 1 changed, 0 removed
Build ID: 9d04abe4e703ef5acab42d0d URL: https://www.apollographql.com/docs/deploy-preview/9d04abe4e703ef5acab42d0d |
✅ Deploy Preview for apollo-ios-docc canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one issue to be resolved with the way the editable generated files are handled.
We also need to add this new option to the documentation (not just the generated docs).
Sources/AnimalKingdomAPI/AnimalKingdomAPI/Sources/Schema/CustomScalars/CustomDate.scalar.swift
Outdated
Show resolved
Hide resolved
Tests/ApolloCodegenTests/ApolloCodegenConfigurationCodableTests.swift
Outdated
Show resolved
Hide resolved
This PR already updated the codegen configuration documentation - Here it is in the docs preview for this PR. Is there another place in the docs to update? I'll take a look at the other two review comments now.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes! LGTM
92f94b4d feature: Add suffix to schema type filenames (#580) git-subtree-dir: apollo-ios-codegen git-subtree-split: 92f94b4d9556b71359fbe7a55c5bcdb6bc3249c0
…ype filenames git-subtree-dir: apollo-ios-codegen git-subtree-mainline: 6501841 git-subtree-split: 92f94b4d9556b71359fbe7a55c5bcdb6bc3249c0
Fixes apollographql/apollo-ios#2598.
Users now have the codegen configuration option (
appendSchemaTypeFilenameSuffix
) to have a suffix added to their schema type filenames. This will help resolve problems in Xcode where the name of a schema type and operation type are the same causing a build error.This new config option has a default value of
false
which means this should have no effect on users without the filename conflict error.