Skip to content

Conversation

@aaa2000
Copy link
Contributor

@aaa2000 aaa2000 commented Nov 3, 2025

Q A
Branch? main
Tickets Closes #7472
License MIT
Doc PR api-platform/docs#...

Remove the pagination attributes if pagination is explicitely disabled

Before/after comparison

application/ld+json

image image

application/hal+json

image image

application/vnd.api+json

image image

Another improvement could be to remove the parameters pagination (Enable or disable pagination) and partial (Enable or disable partial pagination)

image

@aaa2000 aaa2000 force-pushed the feat-7472-remove-pagination-attributes-if-disabled branch 2 times, most recently from 2cbef08 to f4e5df0 Compare November 4, 2025 11:19
Copy link
Member

@soyuka soyuka left a comment

Choose a reason for hiding this comment

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

I like this and think it's a bug fix on 4.2.

We should not change the global schema though and instead we should have a collection schema without pagination (the one with pagination would just extend the one without pagination).

Like this we can have operations with and without pagination on the same OpenAPI specification.

@aaa2000 aaa2000 force-pushed the feat-7472-remove-pagination-attributes-if-disabled branch from f4e5df0 to 3565192 Compare November 12, 2025 14:17
@aaa2000 aaa2000 changed the base branch from main to 4.2 November 12, 2025 14:17
@aaa2000 aaa2000 force-pushed the feat-7472-remove-pagination-attributes-if-disabled branch 3 times, most recently from 891b950 to 7693f3e Compare November 12, 2025 15:41
@aaa2000 aaa2000 force-pushed the feat-7472-remove-pagination-attributes-if-disabled branch from 7693f3e to d9cf112 Compare November 12, 2025 16:02
@aaa2000
Copy link
Contributor Author

aaa2000 commented Nov 12, 2025

@soyuka PR on 4.2 branch and I added a collection schema without pagination

image image image

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.

feat: Remove the pagination attributes if pagination is explicitely disabled

2 participants