-
Notifications
You must be signed in to change notification settings - Fork 53
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
PaginationTrait Support #234
Conversation
233d4b9
to
96140bd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good, but had two main comments:
1.) We probably want the nextToken
member to be the member symbol of the API model. This complicates checking for empty string, but that's solvable by special casing string to check for empty string, and nil for everything else. My work with the dense list map change uses a helper, that regretfully isn't available here yet that would simplify this.
2.) The done
member being able to reactivate is odd, i think. If the SDK detects end of pagination, for any reason, the paginator should forcibly stop there. Arguably it probably should also return an error if it is called when it is known that there are no more pages.
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
96140bd
to
48a464f
Compare
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
...mithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/integration/Paginators.java
Outdated
Show resolved
Hide resolved
92a1be5
to
31115b5
Compare
31115b5
to
b3193dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change looks good. Looks like just waiting on updated smithy change.
76246a5
to
ac873c1
Compare
ac873c1
to
75ce021
Compare
75ce021
to
54de852
Compare
Depends on smithy-lang/smithy#628