-
Notifications
You must be signed in to change notification settings - Fork 35
feat: Generate schemas with native-Swift code generator #998
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
base: epic/sbs
Are you sure you want to change the base?
Conversation
| // | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| // | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the other AST... types below are used to read the model file (JSON AST format) from disk.
Once the JSON AST is loaded, it is transformed into a Model (see Model.swift below.)
| FileManager.default.createFile(atPath: schemasFileURL.path, contents: Data()) | ||
| } | ||
| // Use resolved file URLs to run code generator | ||
| try CodeGenerator(modelFileURL: modelFileURL, schemasFileURL: schemasFileURL).run() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, the "placeholder" for code generation is replaced with a call to the actual code generator, implemented below.
| "smithy.api#jsonName", | ||
| "smithy.api#required", | ||
| "smithy.api#default", | ||
| "smithy.api#timestampFormat", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list is the same as the one defined in Kotlin above
Issue #
Description of changes
Scope
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.