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

Update trailing line break, list member grammar #1533

Merged

Conversation

milesziemer
Copy link
Contributor

Grammar no longer requires a trailing line break after shape bodies, only between shapes,
and list members are now optional, because they can be mixed in.

Issue #, if available:
#1522

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

@milesziemer milesziemer requested a review from a team as a code owner December 12, 2022 21:13
@milesziemer milesziemer force-pushed the line-break-and-list-member-grammar branch 2 times, most recently from 01595bb to b7d3357 Compare December 12, 2022 21:49
Grammar no longer requires a trailing line break after shape bodies,
only between shapes. Also, list and map members are now optional because
in IDL 2 they can be mixed in.
@milesziemer milesziemer force-pushed the line-break-and-list-member-grammar branch from b7d3357 to edc9505 Compare December 12, 2022 22:11
@milesziemer milesziemer merged commit 3dbec6d into smithy-lang:main Dec 12, 2022
milesziemer added a commit to milesziemer/smithy that referenced this pull request Dec 13, 2022
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 added a commit to milesziemer/smithy that referenced this pull request Dec 13, 2022
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 added a commit to milesziemer/smithy that referenced this pull request Dec 13, 2022
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 added a commit that referenced this pull request Dec 13, 2022
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.
daddykotex added a commit to disneystreaming/smithy-translate that referenced this pull request Jan 5, 2023
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