Shreepad Khandve
04/27/2023, 7:57 AMpaginator:
type: DefaultPaginator
pagination_strategy:
type: "CursorPagination"
cursor_value: "{{ response.links.next }}"
stop_condition: "{{ 'links' not in response }}"kapa.ai
04/27/2023, 7:57 AMkapa.ai
04/27/2023, 7:58 AMCursorPagination strategy with a stop_condition. Here's the relevant extract from the documentation: yaml CursorPagination: type: object additionalProperties: true required: - cursor_value properties: "$parameters": "$ref": "#/definitions/$parameters" cursor_value: type: string stop_condition: type: string page_size: type: integer Source: [Pagination Strategies - Cursor](https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/pagination#CursorPagination) To fix the issue with stopping the loop, you can try modifying the stop_condition to check if the next link is not present in the response.links object: yaml paginator: type: DefaultPaginator pagination_strategy: type: "CursorPagination" cursor_value: "{{ response.links.next }}" stop_condition: "{{ 'next' not in response.links }}" However, I cannot guarantee that this will work without knowing more about the API response structure. Make sure to adjust the stop_condition according to the actual response format.Joe Reuter (Airbyte)
04/27/2023, 8:26 AMShreepad Khandve
04/27/2023, 8:30 AMJoe Reuter (Airbyte)
04/27/2023, 9:19 AMJoe Reuter (Airbyte)
04/27/2023, 9:20 AMShreepad Khandve
04/27/2023, 2:29 PMJoe Reuter (Airbyte)
04/27/2023, 2:46 PMShreepad Khandve
04/28/2023, 6:04 AM........
"options": {
"size": "multi"
}
}
}
]
},
"links": {
"next": "<https://iteratehq.com/api/v1/surveys/5d6e82a775********7ee1f/responses?access_token=************&page[cursor]=5d6f14e2b270******ab757d>"
}
}Shreepad Khandve
04/28/2023, 6:06 AM"label": "Very low effort",
"value": "very-low-effort"
}
],
"labels": [
"Very high effort",
"High effort",
"Neither low nor high",
"Low effort",
"Very low effort"
],
"type": "custom"
}
}
}
]
}
}Joe Reuter (Airbyte)
04/28/2023, 9:04 AM