Skip to content

Commit d9b0001

Browse files
authored
fix: change paginator model access (#242)
1 parent 6e2af31 commit d9b0001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/PaginationGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ final class PaginationGenerator implements Runnable {
6767
this.methodName = Character.toLowerCase(operationName.charAt(0)) + operationName.substring(1);
6868
this.paginationType = this.nonModularServiceName + "PaginationConfiguration";
6969

70-
PaginatedIndex paginatedIndex = model.getKnowledge(PaginatedIndex.class);
70+
PaginatedIndex paginatedIndex = PaginatedIndex.of(model);
7171
Optional<PaginationInfo> paginationInfo = paginatedIndex.getPaginationInfo(service, operation);
7272
this.paginatedInfo = paginationInfo.orElseThrow(() -> {
7373
return new CodegenException("Expected Paginator to have pagination information.");

0 commit comments

Comments
 (0)