Skip to content

Commit f1290da

Browse files
DavudSafarliory-bot
authored andcommitted
fix: incorrect default value for page_tokens
GitOrigin-RevId: 74d3aa40f77a7b08f7616a5d00dd6097b6441e08
1 parent 82b1e3c commit f1290da

File tree

13 files changed

+6
-43
lines changed

13 files changed

+6
-43
lines changed

internal/httpclient/api/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,8 +1123,6 @@ paths:
11231123
name: page_token
11241124
required: false
11251125
schema:
1126-
default: "1"
1127-
minimum: 1
11281126
type: string
11291127
style: form
11301128
- description: The subject to list the consent sessions for.
@@ -4649,13 +4647,11 @@ components:
46494647
minimum: 1
46504648
type: integer
46514649
page_token:
4652-
default: "1"
46534650
description: |-
46544651
Next Page Token
46554652
46564653
The next page token.
46574654
For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
4658-
minimum: 1
46594655
type: string
46604656
type: object
46614657
tokenPaginationHeaders:
@@ -4694,13 +4690,11 @@ components:
46944690
minimum: 1
46954691
type: integer
46964692
page_token:
4697-
default: "1"
46984693
description: |-
46994694
Next Page Token
47004695
47014696
The next page token.
47024697
For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).
4703-
minimum: 1
47044698
type: string
47054699
title: Pagination Request Parameters
47064700
type: object

internal/httpclient/api_o_auth2.go

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/httpclient/docs/OAuth2API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ import (
10751075
func main() {
10761076
subject := "subject_example" // string | The subject to list the consent sessions for.
10771077
pageSize := int64(789) // int64 | Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to 250)
1078-
pageToken := "pageToken_example" // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to "1")
1078+
pageToken := "pageToken_example" // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional)
10791079
loginSessionId := "loginSessionId_example" // string | The login session id to list the consent sessions for. (optional)
10801080

10811081
configuration := openapiclient.NewConfiguration()
@@ -1103,7 +1103,7 @@ Name | Type | Description | Notes
11031103
------------- | ------------- | ------------- | -------------
11041104
**subject** | **string** | The subject to list the consent sessions for. |
11051105
**pageSize** | **int64** | Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [default to 250]
1106-
**pageToken** | **string** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [default to "1"]
1106+
**pageToken** | **string** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). |
11071107
**loginSessionId** | **string** | The login session id to list the consent sessions for. |
11081108

11091109
### Return type

internal/httpclient/docs/TokenPagination.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**PageSize** | Pointer to **int64** | Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250]
8-
**PageToken** | Pointer to **string** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to "1"]
8+
**PageToken** | Pointer to **string** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional]
99

1010
## Methods
1111

internal/httpclient/docs/TokenPaginationRequestParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**PageSize** | Pointer to **int64** | Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250]
8-
**PageToken** | Pointer to **string** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to "1"]
8+
**PageToken** | Pointer to **string** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional]
99

1010
## Methods
1111

internal/httpclient/model_token_pagination.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/httpclient/model_token_pagination_request_parameters.go

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

oryx/openapix/pagination.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,5 @@ type TokenPaginationParams struct {
3939
//
4040
// required: false
4141
// in: query
42-
// default: 1
43-
// min: 1
4442
PageToken string `json:"page_token"`
4543
}

oryx/pagination/migrationpagination/header.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ type RequestParameters struct {
5252
//
5353
// required: false
5454
// in: query
55-
// default: 1
56-
// min: 1
5755
PageToken string `json:"page_token"`
5856
}
5957

oryx/pagination/pagepagination/header.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ type RequestParameters struct {
5252
//
5353
// required: false
5454
// in: query
55-
// default: 1
56-
// min: 1
5755
PageToken string `json:"page_token"`
5856
}
5957

0 commit comments

Comments
 (0)