Skip to content

Commit 688287c

Browse files
Bring over structured Swift syntax from OpenAPI (#1722)
Motivation: We’ll need to be able to represent code to generate as structured Swift types for the new Codegen library. This is effectively what swift-syntax provides but we can’t (at time of writing) take it as a dependency because of its unstable API. Swift OpenAPI Generator has already provided a number of these types as its StructuedSwiftRepresentation. Modifications: - Copied StructuredSwiftRepresentation.swift inside the Codegen library module - Mentioned the usage in NOTICES.txt Result: Codegen library will have a representation of the code to generate as structured Swift types.
1 parent 9bf9d28 commit 688287c

File tree

2 files changed

+1734
-0
lines changed

2 files changed

+1734
-0
lines changed

NOTICES.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,12 @@ This product uses derivations of swift-extras/swift-extras-base64 'Base64.swift'
5757
* https://github.com/swift-extras/swift-extras-base64/blob/main/LICENSE
5858
* HOMEPAGE:
5959
* https://github.com/swift-extras/swift-extras-base64
60+
61+
---
62+
63+
This product uses derivations of apple/swift-openapi-generator 'StructuredSwiftRepresentation.swift'.
64+
65+
* LICENSE (Apache License 2.0):
66+
* https://github.com/apple/swift-openapi-generator/blob/main/LICENSE.txt
67+
* HOMEPAGE:
68+
* https://github.com/apple/swift-openapi-generator

0 commit comments

Comments
 (0)