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 from abb2142 to 2cbef08 Compare November 4, 2025 10:57
@aaa2000 aaa2000 force-pushed the feat-7472-remove-pagination-attributes-if-disabled branch 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.

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