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

Make ShapeId a datatype #25

Merged
merged 7 commits into from
Jan 5, 2022
Merged

Make ShapeId a datatype #25

merged 7 commits into from
Jan 5, 2022

Conversation

Baccata
Copy link
Contributor

@Baccata Baccata commented Jan 4, 2022

And use it as a hint everywhere. The rationale is as follows :

  1. would be useful for error messages
  2. will be required for implementing some protocols
  3. ShapeId can be used as a map key for dynamic purposes

And use it as a hint everywhere. The rationale is as follows :

1. would be useful for error messages
2. will be required for implementing some protocols
3. `ShapeId` can be used as a map key for dynamic purposes
@kubukoz kubukoz self-requested a review January 4, 2022 17:19

case class ServerErrorCase(serverError: ServerError) extends GetObjectError

object ServerErrorCase {
val hints : smithy4s.Hints = smithy4s.Hints()
val hints : smithy4s.Hints = smithy4s.Hints(
id,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, this one should not been rendered.

lewisjkl
lewisjkl previously approved these changes Jan 4, 2022
kubukoz
kubukoz previously approved these changes Jan 4, 2022
@Baccata Baccata dismissed stale reviews from kubukoz and lewisjkl via 7061c19 January 5, 2022 08:17
@@ -211,9 +212,9 @@ object MetadataSpec extends FunSuite {

test("map of list of strings query param") {
Copy link
Member

Choose a reason for hiding this comment

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

The name seems not to be accurate anymore, same in the other test

@Baccata Baccata merged commit 622f1aa into main Jan 5, 2022
@Baccata Baccata deleted the shape-ids branch January 5, 2022 10:49
@kubukoz kubukoz mentioned this pull request Jan 9, 2022
Baccata added a commit that referenced this pull request May 10, 2022
* Makes ShapeID a datatype, that can be used as a hint, and as a key to maps. 
* Change rendering of newtype to facilitate the use of ids as hints 
* Bump smithy to 1.16.0
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.

None yet

3 participants