Skip to content

Commit

Permalink
feat(HttpAPI): use discriminator field for paginationsConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
davinov committed Oct 24, 2024
1 parent 21d6dca commit 760839a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion toucan_connectors/http_api/http_api_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ class HttpAPIConnector(ToucanConnector, data_source_model=HttpAPIDataSource):
None,
description="You can provide a custom template that will be used for every HTTP request",
)
http_pagination_config: HttpPaginationConfig | None = Field(None, title="Pagination configuration")
http_pagination_config: HttpPaginationConfig | None = Field(
None, title="Pagination configuration", discriminator="kind"
)

def do_request(self, query, session):
"""
Expand Down

0 comments on commit 760839a

Please sign in to comment.