diff --git a/Src/Notion.Client/Api/Blocks/RequestParams/BlocksRetrieveChildrenParameters.cs b/Src/Notion.Client/Api/Blocks/RequestParams/BlocksRetrieveChildrenParameters.cs index 52a2685f..ddc73a91 100644 --- a/Src/Notion.Client/Api/Blocks/RequestParams/BlocksRetrieveChildrenParameters.cs +++ b/Src/Notion.Client/Api/Blocks/RequestParams/BlocksRetrieveChildrenParameters.cs @@ -3,6 +3,6 @@ public class BlocksRetrieveChildrenParameters : IBlocksRetrieveChildrenQueryParameters { public string StartCursor { get; set; } - public string PageSize { get; set; } + public int? PageSize { get; set; } } } diff --git a/Src/Notion.Client/Api/Databases/DatabasesClient.cs b/Src/Notion.Client/Api/Databases/DatabasesClient.cs index 5a7570c1..7f12bb62 100644 --- a/Src/Notion.Client/Api/Databases/DatabasesClient.cs +++ b/Src/Notion.Client/Api/Databases/DatabasesClient.cs @@ -25,7 +25,7 @@ public async Task> ListAsync(DatabasesListParameters dat var queryParams = new Dictionary() { { "start_cursor", databasesListQueryParmaters?.StartCursor }, - { "page_size", databasesListQueryParmaters?.PageSize } + { "page_size", databasesListQueryParmaters?.PageSize?.ToString() } }; return await _client.GetAsync>(DatabasesApiUrls.List(), queryParams); diff --git a/Src/Notion.Client/Api/Databases/RequestParams/DatabasesListParameters.cs b/Src/Notion.Client/Api/Databases/RequestParams/DatabasesListParameters.cs index 7300e11d..51136e47 100644 --- a/Src/Notion.Client/Api/Databases/RequestParams/DatabasesListParameters.cs +++ b/Src/Notion.Client/Api/Databases/RequestParams/DatabasesListParameters.cs @@ -3,6 +3,6 @@ public class DatabasesListParameters : IDatabasesListQueryParmaters { public string StartCursor { get; set; } - public string PageSize { get; set; } + public int? PageSize { get; set; } } } diff --git a/Src/Notion.Client/Api/Databases/RequestParams/DatabasesQueryParameters.cs b/Src/Notion.Client/Api/Databases/RequestParams/DatabasesQueryParameters.cs index 973fcaa6..454961a2 100644 --- a/Src/Notion.Client/Api/Databases/RequestParams/DatabasesQueryParameters.cs +++ b/Src/Notion.Client/Api/Databases/RequestParams/DatabasesQueryParameters.cs @@ -7,6 +7,6 @@ public class DatabasesQueryParameters : IDatabaseQueryBodyParameters public Filter Filter { get; set; } public List Sorts { get; set; } public string StartCursor { get; set; } - public string PageSize { get; set; } + public int? PageSize { get; set; } } } diff --git a/Src/Notion.Client/Api/Search/Parameters/SearchParameters.cs b/Src/Notion.Client/Api/Search/Parameters/SearchParameters.cs index a933f1e8..ae02c0f4 100644 --- a/Src/Notion.Client/Api/Search/Parameters/SearchParameters.cs +++ b/Src/Notion.Client/Api/Search/Parameters/SearchParameters.cs @@ -6,6 +6,6 @@ public class SearchParameters : ISearchBodyParameters public SearchSort Sort { get; set; } public SearchFilter Filter { get; set; } public string StartCursor { get; set; } - public string PageSize { get; set; } + public int? PageSize { get; set; } } } diff --git a/Src/Notion.Client/Models/PaginatedList.cs b/Src/Notion.Client/Models/PaginatedList.cs index 53360afe..05881b26 100644 --- a/Src/Notion.Client/Models/PaginatedList.cs +++ b/Src/Notion.Client/Models/PaginatedList.cs @@ -9,7 +9,7 @@ public interface IPaginationParameters string StartCursor { get; set; } [JsonProperty("page_size")] - string PageSize { get; set; } + int? PageSize { get; set; } } public class PaginatedList