Skip to content
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

feat: Add deprecated shape remover #1511

Merged
merged 4 commits into from
May 20, 2024
Merged

Conversation

sichanyoo
Copy link
Contributor

Issue #

#1026

Description of changes

  • Adds model preprocessing that removes shapes with deprecated trait based on since property if earlier than cutoff date.
  • Adds codegen tests for the shape remover

New/existing dependencies impact assessment, if applicable

Conventional Commits

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

@sichanyoo sichanyoo changed the title Add deprecated shape remover & codegen tests for it. feat: Add deprecated shape remover May 17, 2024
val contents = TestUtils.getModelFileContents("Example", "OperationWithDeprecatedInputMembersInput.swift", context.manifest)
contents.shouldSyntacticSanityCheck()
val removedContent = """
@available(*, deprecated, message: " API deprecated since 2024-09-01")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is there a leading space in the message? Even if not part of this PR, we should remove that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch; fixed as part of smithy-lang/smithy-swift#732.

@sichanyoo sichanyoo merged commit 685cad9 into main May 20, 2024
29 checks passed
@sichanyoo sichanyoo deleted the feat/deprecated-shape-remover branch May 20, 2024 17:51
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.

2 participants