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

Remove unneeded doc parser #1123

Merged
merged 5 commits into from
Jan 28, 2022
Merged

Remove unneeded doc parser #1123

merged 5 commits into from
Jan 28, 2022

Conversation

rcoh
Copy link
Collaborator

@rcoh rcoh commented Jan 26, 2022

Motivation and Context

@aajtodd thoughtfully pointed out that our separate documentParser is actually totally unnecessary (this is handled correctly by payload parser already!)

Description

  • remove documentParser
  • rename some fields to clarify
  • remove old asserts

Testing

  • IT / UT
  • review generated code diff

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • I have updated CHANGELOG.next.toml if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@rcoh rcoh requested review from a team as code owners January 26, 2022 19:14
@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

Copy link
Collaborator

@jdisanti jdisanti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! The Some(...).ok_or_else(...) is a little bit awkward, but definitely makes codegen easier. Seems like it should be fine though given how infrequent documents are (not a ton of unreachable error code).

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@github-actions
Copy link

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

@@ -77,4 +83,4 @@ author = "jdisanti"
message = "MSRV increased from `1.54` to `1.56.1` per our 2-behind MSRV policy."
references = ["smithy-rs#1130"]
meta = { "breaking" = true, "tada" = false, "bug" = false }
author = "jdisanti"
author = "jdisanti"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inadvertently removed newline.

@rcoh rcoh merged commit b79cb26 into main Jan 28, 2022
@rcoh rcoh deleted the remove-doc-parser branch January 28, 2022 23:18
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