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

Refactor model loading to allow equal conflicts #520

Merged
merged 1 commit into from
Aug 6, 2020

Conversation

mtdowling
Copy link
Member

When using Smithy features like model discovery on the classpath, it's sometimes difficult to prevent the same Smithy models from being added to the model assembler multiple times. This is also true when using artifacts created for the "model" plugin for smithy-build along with model discovery. To address this, Smithy has been updated to allow conflicting shape definitions if the shapes, after they are fully built, are equivalent (meaning, they have the same exact members or references to other shapes and are the same type).

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

@mtdowling mtdowling force-pushed the refactor-loading branch 2 times, most recently from 17fe593 to 383b229 Compare August 3, 2020 16:55
@mtdowling mtdowling requested a review from kstich August 4, 2020 00:01
When using Smithy features like model discovery on the classpath, it's
sometimes difficult to prevent the same Smithy models from being added
to the model assembler multiple times. This is also true when using
artifacts created for the "model" plugin for smithy-build along with
model discovery. To address this, Smithy has been updated to allow
conflicting shape definitions if the shapes, after they are fully built,
are equivalent (meaning, they have the same exact members or references to
other shapes and are the same type).
@mtdowling mtdowling merged commit 3204ad9 into master Aug 6, 2020
@mtdowling mtdowling deleted the refactor-loading branch August 7, 2020 05:42
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