Commit 340ee95
authored
Update generator version in manual cli example (#802)
### Motivation
This solves the missing import issue described in
#755
### Modifications
Update the version of generator in`Makefile`
Updated runtime versions to latest released version
### Result
Solved the `is not available due to missing import of defining module
'Foundation'` issue
```text
13 | //===----------------------------------------------------------------------===//
14 | import OpenAPIKit
15 |
| `- note: add import of module 'Foundation'
16 | /// Represents a server variable and the function of generation that should be applied.
17 | protocol ServerVariableGenerator {
:
166 | self.key = key
167 | swiftSafeKey = context.safeNameGenerator.swiftMemberName(for: key)
168 | enumName = context.safeNameGenerator.swiftTypeName(for: key.localizedCapitalized)
| `- error: property 'localizedCapitalized' is not available due to missing import of defining module 'Foundation'
169 | self.variable = variable
170 | self.enumValues = enumValues
/Volumes/w/src/github.com/apple/swift-openapi-generator/Examples/manual-generation-generator-cli-example/.swift-openapi-generator/Sources/_OpenAPIGeneratorCore/Translator/TypesTranslator/translateServersVariables.swift:168:73: error: property 'localizedCapitalized' is not available due to missing import of defining module 'Foundation'
13 | //===----------------------------------------------------------------------===//
14 | import OpenAPIKit
```
### Test Plan
Passed locally, `make generate` and `swift run`.1 parent bb9a135 commit 340ee95
File tree
2 files changed
+3
-3
lines changed- Examples/manual-generation-generator-cli-example
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments