Skip to content

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

Open
soyuka wants to merge 1 commit intoapi-platform:4.2from
soyuka:fix/3975
Open

fix(metadata): allow GraphQL-only resources without identifiers (#3975)#7836
soyuka wants to merge 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
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