Skip to content

fix(metadata): allow GraphQL-only resources without identifiers (#3975)#7836

Merged
soyuka merged 1 commit intoapi-platform:4.2from
soyuka:fix/3975
Mar 13, 2026
Merged

fix(metadata): allow GraphQL-only resources without identifiers (#3975)#7836
soyuka merged 1 commit intoapi-platform:4.2from
soyuka:fix/3975

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Mar 10, 2026

Q A
Branch? 4.2
Tickets Fixes #3975
License MIT
Doc PR
  • Allow standalone #[Query] without #[ApiResource] by creating a default resource in MetadataCollectionFactoryTrait
  • Set empty uriVariables on NotExposed skolem operations to prevent UriTemplateFactory from inferring a non-existent {id} variable

In some cases NotExposed was being set an uriVariable although it had non on the class.

…platform#3975)

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Tickets       | Fixes api-platform#3975
| License       | MIT
| Doc PR        | ∅

* Allow standalone #[Query] without #[ApiResource] by creating a default resource in MetadataCollectionFactoryTrait
* Set empty uriVariables on NotExposed skolem operations to prevent UriTemplateFactory from inferring a non-existent {id} variable
@soyuka soyuka merged commit da62324 into api-platform:4.2 Mar 13, 2026
1 of 2 checks passed
@soyuka soyuka deleted the fix/3975 branch March 13, 2026 10:17
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.

1 participant