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

Add back vendorParamsShape if removed by transformers #2101

Closed
wants to merge 1 commit into from

Conversation

milesziemer
Copy link
Contributor

Adds a ModelTransformerPlugin to smithy-smoke-test-traits that will add back shapes referenced by a smoke test case vendorParamsShape that were removed by model transforms. Transforms like removeUnusedShapes will remove these shapes since they aren't connected to the model graph as @idref's don't create edges.

To accomplish this, ModelTransformerPlugin was given an order used to sort the plugins. This was required to make the new plugin run after all other plugins, which may remove more shapes that need to be added back.

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

Adds a ModelTransformerPlugin to smithy-smoke-test-traits that will
add back shapes referenced by a smoke test case vendorParamsShape that
were removed by model transforms. Transforms like removeUnusedShapes
will remove these shapes since they aren't connected to the model graph
as @idref's don't create edges.

To accomplish this, ModelTransformerPlugin was given an `order` used to
sort the plugins. This was required to make the new plugin run after
all other plugins, which may remove more shapes that need to be added
back.
@milesziemer milesziemer requested a review from a team as a code owner January 17, 2024 21:16
@milesziemer
Copy link
Contributor Author

Closing in favor of #2105

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