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 dangling doc comments in structures #1776

Merged

Conversation

milesziemer
Copy link
Contributor

Issue #, if available:

Description of changes:
Due to differences in how structures are parsed vs lists and maps, dangling doc comments were not being handled properly on structure shapes. Our tests were only verifying the behavior for maps, so it wasn't caught initially. With these changes, proper warnings are emitted when there are dangling doc comments in a structure shape.

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

Due to differences in how structures are parsed vs lists and maps,
dangling doc comments were not being handled properly on structure
shapes. Our tests were only verifying the behavior for maps, so it
wasn't caught initially. With these changes, proper warnings are
emitted when there are dangling doc comments in a structure shape.
@milesziemer milesziemer requested a review from a team as a code owner May 18, 2023 13:31
@milesziemer milesziemer merged commit 7342b2c into smithy-lang:main May 22, 2023
syall pushed a commit to Xtansia/smithy that referenced this pull request Aug 11, 2023
Due to differences in how structures are parsed vs lists and maps,
dangling doc comments were not being handled properly on structure
shapes. Our tests were only verifying the behavior for maps, so it
wasn't caught initially. With these changes, proper warnings are
emitted when there are dangling doc comments in a structure shape.
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