Skip to content

Alignment of Pagination Datatype - #698

Merged
rartych merged 5 commits into
camaraproject:mainfrom
tlohmar:PaginationDataTypeAlignment
Sep 1, 2026
Merged

Alignment of Pagination Datatype#698
rartych merged 5 commits into
camaraproject:mainfrom
tlohmar:PaginationDataTypeAlignment

Conversation

@tlohmar

@tlohmar tlohmar commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • correction

What this PR does / why we need it:

The PR aligns the Pagination Datatype definition in the example to CAMARA_common.yaml.

Which issue(s) this PR fixes:

Fixes #696

Does this PR introduce a breaking change?

  • Yes
  • No

Special notes for reviewers:

Changelog input

Alignment of the Pagination Datatype definition in the example to CAMARA_common.yaml.

Additional documentation

This section can be blank.

docs

eric-murray
eric-murray previously approved these changes Aug 11, 2026

@PedroDiez PedroDiez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread documentation/CAMARA-API-Design-Guide.md Outdated
PedroDiez
PedroDiez previously approved these changes Aug 19, 2026

@PedroDiez PedroDiez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

bigludo7
bigludo7 previously approved these changes Aug 24, 2026

@bigludo7 bigludo7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

rartych
rartych previously approved these changes Aug 24, 2026

@rartych rartych left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hdamker hdamker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See suggestion below ... instead of adding about 27 lines I suggest to delete 13 lines. We should avoid to repeat definitions from CAMARA_common.yaml verbatim going forward, and we should encourage API authors in the examples to use refs instead of local definitions.

Comment thread documentation/CAMARA-API-Design-Guide.md Outdated
Comment on lines +648 to +690
Pagination:
description: Pagination details helping to navigate through paged results efficiently.
type: object
properties:
page:
type: integer
minimum: 1
$ref: "#/components/schemas/Page"
perPage:
type: integer
minimum: 1
maximum: 100
$ref: "#/components/schemas/PerPage"
totalCount:
type: integer
minimum: 0
$ref: "#/components/schemas/TotalCount"
totalPages:
type: integer
minimum: 0
$ref: "#/components/schemas/TotalPages"

Page:
type: integer
format: int32
minimum: 1
maximum: 2147483647
default: 1
description: Current page number (1-indexed).
example: 1
PerPage:
type: integer
format: int32
minimum: 1
maximum: 100
default: 20
description: Number of items per page.
example: 20
TotalCount:
type: integer
format: int32
minimum: 0
maximum: 2147483647
description: Total number of items matching the query, after filters applied. MAY be omitted where a full count query is prohibitively expensive.
example: 87
TotalPages:
type: integer
format: int32
minimum: 0
maximum: 2147483647
description: Total number of pages. Equals ceil(totalCount / perPage). MAY be omitted where totalCount is omitted.
example: 5

@hdamker hdamker Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once pagination refs CAMARA_common.yaml above, this local copy of Pagination/Page/PerPage/TotalCount/TotalPages should be removed — nothing points to it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hdamker @rartych Please check. I have also removed the Note above the example and linked common.yaml for the detailed schema definition.

Co-authored-by: Herbert Damker <herbert.damker@telekom.de>
@tlohmar
tlohmar dismissed stale reviews from rartych, bigludo7, and PedroDiez via 1c30226 August 27, 2026 09:34

@bigludo7 bigludo7 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rartych rartych left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rartych
rartych merged commit 6ccea44 into camaraproject:main Sep 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent Pagination example

6 participants