-
Notifications
You must be signed in to change notification settings - Fork 731
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump version number * Update documentation for Swift-based schema download * Update CHANGELOG for Swift-based schema download * Update SwiftScripting documentation * Update CHANGELOG.md
- Loading branch information
1 parent
6672b0e
commit d328c0e
Showing
14 changed files
with
153 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
CURRENT_PROJECT_VERSION = 0.48.0 | ||
CURRENT_PROJECT_VERSION = 0.49.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...source/api/ApolloCodegenLib/enums/ApolloSchemaDownloader.SchemaDownloadError.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
**ENUM** | ||
|
||
# `ApolloSchemaDownloader.SchemaDownloadError` | ||
|
||
```swift | ||
public enum SchemaDownloadError: Error, LocalizedError | ||
``` | ||
|
||
## Cases | ||
### `downloadedRegistryJSONFileNotFound(underlying:)` | ||
|
||
```swift | ||
case downloadedRegistryJSONFileNotFound(underlying: Error) | ||
``` | ||
|
||
### `downloadedIntrospectionJSONFileNotFound(underlying:)` | ||
|
||
```swift | ||
case downloadedIntrospectionJSONFileNotFound(underlying: Error) | ||
``` | ||
|
||
### `couldNotParseRegistryJSON(underlying:)` | ||
|
||
```swift | ||
case couldNotParseRegistryJSON(underlying: Error) | ||
``` | ||
|
||
### `unexpectedRegistryJSONType` | ||
|
||
```swift | ||
case unexpectedRegistryJSONType | ||
``` | ||
|
||
### `couldNotExtractSDLFromRegistryJSON` | ||
|
||
```swift | ||
case couldNotExtractSDLFromRegistryJSON | ||
``` | ||
|
||
### `couldNotCreateSDLDataToWrite(schema:)` | ||
|
||
```swift | ||
case couldNotCreateSDLDataToWrite(schema: String) | ||
``` | ||
|
||
### `couldNotConvertIntrospectionJSONToSDL(underlying:)` | ||
|
||
```swift | ||
case couldNotConvertIntrospectionJSONToSDL(underlying: Error) | ||
``` | ||
|
||
## Properties | ||
### `errorDescription` | ||
|
||
```swift | ||
public var errorDescription: String? | ||
``` |
22 changes: 0 additions & 22 deletions
22
docs/source/api/ApolloCodegenLib/enums/ApolloSchemaOptions.SchemaFileType.md
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...egenLib/extensions/ApolloSchemaOptions.md → ...ions/ApolloSchemaDownloadConfiguration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ce/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.HTTPHeader.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
**STRUCT** | ||
|
||
# `ApolloSchemaDownloadConfiguration.HTTPHeader` | ||
|
||
```swift | ||
public struct HTTPHeader: Equatable, CustomDebugStringConvertible | ||
``` | ||
|
||
## Properties | ||
### `debugDescription` | ||
|
||
```swift | ||
public var debugDescription: String | ||
``` |
39 changes: 39 additions & 0 deletions
39
docs/source/api/ApolloCodegenLib/structs/ApolloSchemaDownloadConfiguration.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
**STRUCT** | ||
|
||
# `ApolloSchemaDownloadConfiguration` | ||
|
||
```swift | ||
public struct ApolloSchemaDownloadConfiguration | ||
``` | ||
|
||
A configuration object that defines behavior for schema download. | ||
|
||
## Methods | ||
### `init(using:timeout:headers:outputFolderURL:schemaFilename:)` | ||
|
||
```swift | ||
public init(using downloadMethod: DownloadMethod, | ||
timeout downloadTimeout: Double = 30.0, | ||
headers: [HTTPHeader] = [], | ||
outputFolderURL: URL, | ||
schemaFilename: String = "schema") | ||
``` | ||
|
||
Designated Initializer | ||
|
||
- Parameters: | ||
- downloadMethod: How to download your schema. | ||
- downloadTimeout: The maximum time to wait before indicating that the download timed out, in seconds. Defaults to 30 seconds. | ||
- headers: [optional] Any additional headers to include when retrieving your schema. Defaults to nil | ||
- outputFolderURL: The URL of the folder in which the downloaded schema should be written | ||
- schemaFilename: The name, without an extension, for your schema file. Defaults to `"schema" | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| downloadMethod | How to download your schema. | | ||
| downloadTimeout | The maximum time to wait before indicating that the download timed out, in seconds. Defaults to 30 seconds. | | ||
| headers | [optional] Any additional headers to include when retrieving your schema. Defaults to nil | | ||
| outputFolderURL | The URL of the folder in which the downloaded schema should be written | | ||
| schemaFilename | The name, without an extension, for your schema file. Defaults to `“schema” | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
docs/source/api/ApolloCodegenLib/structs/ApolloSchemaOptions.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters