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

Fix MapMembers grammar and update test #1536

Merged

Conversation

milesziemer
Copy link
Contributor

In IDL 2, map members can be mixed in, so Smithy grammar should reflect their optionality. #1533 incorrectly changed MapMembers grammar to make both MapKey and MapValue optional together, when they are optional separately. This PR fixes the MapMembers grammar to allow MapKey and MapValue to be optional separately, and updates a test case to reflect that.

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

In IDL 2, map members can be mixed in, so Smithy grammar should reflect
their optionality. smithy-lang#1533 incorrectly
changed MapMembers grammar to make both MapKey and MapValue optional together,
when they are optional separately. This PR fixes the MapMembers grammar
to allow MapKey and MapValue to be optional separately, and updates a
test case to reflect that.
@milesziemer milesziemer requested a review from a team as a code owner December 13, 2022 15:31
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