Skip to content

fix(laravel): jsonapi query parameters (page, sort, fields and include) - #6876

Merged
soyuka merged 1 commit into
api-platform:4.0from
soyuka:fix/jsonapi-query-parameters
Dec 20, 2024
Merged

fix(laravel): jsonapi query parameters (page, sort, fields and include)#6876
soyuka merged 1 commit into
api-platform:4.0from
soyuka:fix/jsonapi-query-parameters

Conversation

@soyuka

@soyuka soyuka commented Dec 17, 2024

Copy link
Copy Markdown
Member
Q A
Branch? 4.0 (this feature should be supported by Laravel)
Tickets Closes #6841
License MIT

@soyuka
soyuka force-pushed the fix/jsonapi-query-parameters branch 3 times, most recently from 9911444 to c941431 Compare December 19, 2024 15:25

@dunglas dunglas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread src/JsonApi/Filter/SparseFieldset.php Outdated

public function getOpenApiParameters(MetadataParameter $parameter): Parameter|array|null
{
$example = \sprintf(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This variable seems useless, you could likely have a single sprintf

@soyuka
soyuka force-pushed the fix/jsonapi-query-parameters branch from c941431 to 6992e5e Compare December 20, 2024 08:45
@soyuka
soyuka merged commit c8db7ae into api-platform:4.0 Dec 20, 2024
@soyuka
soyuka deleted the fix/jsonapi-query-parameters branch December 20, 2024 09:37
vinceAmstoutz pushed a commit to vinceAmstoutz/api-platform-core that referenced this pull request Dec 24, 2024
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.

2 participants