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

Make initializer for ApolloSchemaDownloadConfiguration.HTTPHeader public #1962

Merged
merged 2 commits into from
Sep 24, 2021
Merged

Make initializer for ApolloSchemaDownloadConfiguration.HTTPHeader public #1962

merged 2 commits into from
Sep 24, 2021

Conversation

nsivertsen
Copy link
Contributor

Fixes #1961

@apollo-cla
Copy link

@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/

@calvincestari calvincestari self-requested a review September 23, 2021 16:15
@calvincestari calvincestari self-assigned this Sep 23, 2021
Copy link
Contributor

@designatednerd designatednerd left a 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.

@AnthonyMDev
Copy link
Contributor

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
Copy link
Member

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.

Copy link
Contributor

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 lets - If they're vars 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
Copy link
Member

@calvincestari calvincestari Sep 23, 2021

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.

Copy link
Contributor

@designatednerd designatednerd left a comment

Choose a reason for hiding this comment

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

SLGTM

@designatednerd designatednerd merged commit d898967 into apollographql:main Sep 24, 2021
calvincestari added a commit that referenced this pull request Sep 24, 2021
@calvincestari calvincestari mentioned this pull request Sep 24, 2021
13 tasks
calvincestari added a commit that referenced this pull request Sep 24, 2021
calvincestari added a commit that referenced this pull request Sep 24, 2021
* Update the version number for release
* Update the changelog for #1962
* Update release template query param instructions
* Update changelog for #1954
* Update documentation for #1962
* Update changelog for #1968
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.

Struct initialiser for ApolloSchemaDownloadConfiguration.HTTPHeader is internal
6 participants