-
Notifications
You must be signed in to change notification settings - Fork 731
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
Make initializer for ApolloSchemaDownloadConfiguration.HTTPHeader public #1962
Make initializer for ApolloSchemaDownloadConfiguration.HTTPHeader public #1962
Conversation
@nsivertsen: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
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.
Guh, I always forget that you have to do this even for public structs. Thank you - if you can sign the CLA we can get this merged.
Thanks so much for this fix @nsivertsen! Excited to merge this in once the CLA is signed! |
} | ||
|
||
/// How to download your schema. Supports the Apollo Registry and GraphQL Introspection methods. | ||
let downloadMethod: DownloadMethod | ||
public let downloadMethod: DownloadMethod |
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.
There's no reason to keep these private; once you've created the struct you should be able to inspect the property values.
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.
True for as long as they remain let
s - If they're var
s we may or may not want to allow direct access, although we could handle that with a private(set)
.
@@ -1,9 +1,9 @@ | |||
import XCTest | |||
import ApolloTestSupport | |||
import ApolloCodegenTestSupport | |||
@testable import ApolloCodegenLib | |||
import ApolloCodegenLib |
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.
Changed how this test imports ApolloCodegenLib
to ensure public
access is caught in further tests. The one test that relies on @testable
is now separated.
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.
SLGTM
Fixes #1961