@team-supercharge/oasg 16.7.1-temp-feat-swift-openapi-generator-e6ad5e94 → 16.7.1-temp-feat-swift-openapi-generator-58887187
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/bin/oasg +1 -1
- package/config.schema.yml +3 -3
- package/package.json +1 -1
- package/targets/{swift-openapi-generator → apple-swift}/generate.sh +3 -3
- /package/targets/{swift-openapi-generator → apple-swift}/publish.sh +0 -0
- /package/targets/{swift-openapi-generator → apple-swift/templates}/Package.swift +0 -0
- /package/targets/{swift-openapi-generator → apple-swift/templates}/openapi-generator-config-client.yaml +0 -0
- /package/targets/{swift-openapi-generator → apple-swift/templates}/openapi-generator-config-server.yaml +0 -0
package/README.md
CHANGED
@@ -142,7 +142,7 @@ The table below gives an overview of the changes (breaking, non-breaking, bug fi
|
|
142
142
|
| `plain-java` |🆕 |
|
143
143
|
| `flutter` |➖ |➖ |➖ |🆕 |
|
144
144
|
| `ios` |➖ |➖ |➖ |💥 |🐛 |➖ |➖ |➖ |✨ |➖ |💥 |➖ |➖ |✨ |🆕 |
|
145
|
-
| `swift
|
145
|
+
| `apple-swift` |🆕 |
|
146
146
|
| `kmp` |➖ |➖ |🆕 |
|
147
147
|
| `python` |🆕 |
|
148
148
|
| `python-legacy` |💥 |➖ |🐛 |💥 |➖ |➖ |➖ |➖ |➖ |➖ |➖ |➖ |🆕 |
|
@@ -702,12 +702,12 @@ TBD
|
|
702
702
|
| interfaceType | Response type of the generated client: `Combine` / `Result` / `RxSwift` / `AsyncAwait` / `PromiseKit` | Y | - |
|
703
703
|
| generatorCustomArgs | Custom arguments of the generator | N | - |
|
704
704
|
|
705
|
-
#### `swift
|
705
|
+
#### `apple-swift`
|
706
706
|
|
707
707
|
```json
|
708
708
|
{
|
709
709
|
"id": "client-ios",
|
710
|
-
"type": "swift
|
710
|
+
"type": "apple-swift",
|
711
711
|
"source": "source-merged",
|
712
712
|
"projectName": "OASgExample",
|
713
713
|
"repository": "git@gitlab.supercharge.io:example/openapi-generator-source.git",
|
package/bin/oasg
CHANGED
@@ -42,7 +42,7 @@ const DEFAULT_GENERATOR_MAPPING = {
|
|
42
42
|
"plain-java": { version: '7.11.0', generator: 'java' },
|
43
43
|
"flutter": { version: '7.0.1', generator: 'dart-dio' },
|
44
44
|
"ios": { version: '7.0.1', generator: 'swift5' },
|
45
|
-
"swift
|
45
|
+
"apple-swift": { version: undefined, generator: undefined },
|
46
46
|
"kmp": { version: '7.8.0', generator: 'kotlin' },
|
47
47
|
"python": { version: '7.11.0', generator: 'python' },
|
48
48
|
"python-legacy": { version: '7.11.0', generator: 'python-pydantic-v1' },
|
package/config.schema.yml
CHANGED
@@ -20,7 +20,7 @@ properties:
|
|
20
20
|
- $ref: '#/targets/Stubby'
|
21
21
|
- $ref: '#/targets/Android'
|
22
22
|
- $ref: '#/targets/ios'
|
23
|
-
- $ref: '#/targets/
|
23
|
+
- $ref: '#/targets/AppleSwift'
|
24
24
|
- $ref: '#/targets/Python'
|
25
25
|
- $ref: '#/targets/PythonLegacy'
|
26
26
|
- $ref: '#/targets/PythonFastApi'
|
@@ -313,12 +313,12 @@ targets:
|
|
313
313
|
- repository
|
314
314
|
- interfaceType
|
315
315
|
|
316
|
-
|
316
|
+
AppleSwift:
|
317
317
|
allOf:
|
318
318
|
- $ref: '#/targets/Base'
|
319
319
|
- properties:
|
320
320
|
type:
|
321
|
-
pattern: "^swift
|
321
|
+
pattern: "^apple-swift$"
|
322
322
|
projectName:
|
323
323
|
type: string
|
324
324
|
repository:
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@team-supercharge/oasg",
|
3
|
-
"version": "16.7.1-temp-feat-swift-openapi-generator-
|
3
|
+
"version": "16.7.1-temp-feat-swift-openapi-generator-58887187",
|
4
4
|
"description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
|
5
5
|
"author": "Supercharge",
|
6
6
|
"license": "MIT",
|
@@ -9,18 +9,18 @@ mkdir -p out/$targetId
|
|
9
9
|
# Generate swift code from OpenAPI spec
|
10
10
|
swift-openapi-generator \
|
11
11
|
generate \
|
12
|
-
--config "$
|
12
|
+
--config "$templateDir/openapi-generator-config-client.yaml" \
|
13
13
|
--output-directory "out/$targetId/Sources/$projectName" \
|
14
14
|
"$openApiFile"
|
15
15
|
|
16
16
|
swift-openapi-generator \
|
17
17
|
generate \
|
18
|
-
--config "$
|
18
|
+
--config "$templateDir/openapi-generator-config-server.yaml" \
|
19
19
|
--output-directory "out/$targetId/Sources/${projectName}Server" \
|
20
20
|
"$openApiFile"
|
21
21
|
|
22
22
|
# Copy Package.swift file
|
23
|
-
cp "$
|
23
|
+
cp "$templateDir/Package.swift" "out/$targetId/"
|
24
24
|
|
25
25
|
# Replace the placeholder in Package.swift with the project name
|
26
26
|
if [[ "$(uname -s)" == "Darwin"* ]]; then
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|