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 RenameShapes model transformer #318

Merged
merged 9 commits into from
Mar 26, 2020
Merged

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Mar 16, 2020

This PR adds a RenameShapes model transformer that takes a map of ShapeId to ShapeId pairs.

Shape members are updated for consistency when any member-containing aggregate shape has been renamed.

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

@srchase srchase requested a review from mtdowling March 16, 2020 19:08
@@ -0,0 +1,25 @@
{
Copy link
Member

Choose a reason for hiding this comment

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

For this integration test, I'd like to see metadata getting renamed (e.g., a suppression) and tests for virtually every kind of shape and reference -- structures, lists, maps, sets, unions, services, operations, etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this is missing validation for updating some relationships:

  • service -> operation
  • service -> resource
  • resource -> identifier
  • resource -> operation

@srchase srchase requested review from mtdowling and kstich and removed request for mtdowling March 19, 2020 22:47
@@ -0,0 +1,25 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this is missing validation for updating some relationships:

  • service -> operation
  • service -> resource
  • resource -> identifier
  • resource -> operation

@srchase srchase requested a review from kstich March 23, 2020 23:54
@srchase srchase merged commit eeb063a into smithy-lang:master Mar 26, 2020
@kstich kstich mentioned this pull request Mar 26, 2020
@srchase srchase deleted the rename-node branch March 26, 2020 22:46
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.

3 participants