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

Throw syntax exceptions on duplicate bindings #714

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Feb 16, 2021

This commit updates the Smithy IDL parsing to throw when duplicate
bindings or members are found in the following declarations: service,
resource, and operation shapes, applied structure traits, and applied
traits with members that are structures. This behavior is unsafe for
model writers and shouldn't be valid.

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

@kstich kstich requested a review from mtdowling February 16, 2021 20:22
@kstich
Copy link
Contributor Author

kstich commented Feb 16, 2021

Looks like some windows-based newline issues, will take a look.

@kstich kstich force-pushed the add_dupe_key_checks branch 5 times, most recently from fefe5c8 to a7f785c Compare February 16, 2021 22:40
This commit updates the Smithy IDL parsing to throw when duplicate
bindings or members are found in the following declarations: service,
resource, and operation shapes, applied structure traits, and applied
traits with members that are structures. This behavior is unsafe for
model writers and shouldn't be valid.
@kstich kstich force-pushed the add_dupe_key_checks branch from a7f785c to 0c00d2c Compare February 16, 2021 22:42
@kstich kstich merged commit 33050df into main Feb 18, 2021
@kstich kstich deleted the add_dupe_key_checks branch February 18, 2021 17:12
@kstich kstich mentioned this pull request Feb 22, 2021
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