Skip to content

Conversation

@jbelkins
Copy link
Contributor

Issue #

Description of changes

Scope

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jbelkins jbelkins changed the title Jbe/swift codegen schema feat: Generate schemas with native-Swift code generator Nov 19, 2025
//
// SPDX-License-Identifier: Apache-2.0
//

Copy link
Contributor Author

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()
Copy link
Contributor Author

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",
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant