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

fix: Add validation check for conflicting configuration values #2677

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

calvincestari
Copy link
Member

@calvincestari calvincestari commented Nov 18, 2022

Fixes #2663

This PR adds a validation step to check that the configured output module type does not conflict with the cocoapodsCompatibleImportStatements value. Incorrect combinations of these two properties can result in invalid import statements in the generated code. An error is now thrown informing the user of the conflict and how it can be resolved.

Error: The codegen configuration has conflicting values: cocoapodsCompatibleImportStatements cannot be set to 'true' when the output schema types module type is Swift Package Manager. Change the cocoapodsCompatibleImportStatements value to 'false', or choose a different module type, to resolve the conflict.

@netlify
Copy link

netlify bot commented Nov 18, 2022

Deploy Preview for apollo-ios-docs canceled.

Name Link
🔨 Latest commit fb4243e
🔍 Latest deploy log https://app.netlify.com/sites/apollo-ios-docs/deploys/6377d204948a8f00087aaa83

@calvincestari calvincestari mentioned this pull request Nov 18, 2022
7 tasks
@calvincestari calvincestari merged commit cb71310 into main Nov 18, 2022
@calvincestari calvincestari deleted the fix/conflicting-config-options branch November 18, 2022 19:00
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.

Generated Schema package using wrong import statements
2 participants