Skip to content

fix(hydra): expose all ApiResource declarations in documentation and entrypoint#7746

Merged
soyuka merged 1 commit intoapi-platform:mainfrom
soyuka:fix/hydra-multiple-resources
Feb 13, 2026
Merged

fix(hydra): expose all ApiResource declarations in documentation and entrypoint#7746
soyuka merged 1 commit intoapi-platform:mainfrom
soyuka:fix/hydra-multiple-resources

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Feb 10, 2026

Q A
Branch? 4.2
Tickets
License MIT
Doc PR
  • Iterate through all ApiResource declarations instead of only using the first one
  • Remove is_alternate_resource_metadata check that was hiding additional resources
  • Allows single PHP class with multiple #[ApiResource] attributes to be fully documented

@soyuka soyuka force-pushed the fix/hydra-multiple-resources branch 4 times, most recently from 342c804 to 7239b35 Compare February 12, 2026 22:22
…entrypoint

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Tickets       | ∅
| License       | MIT
| Doc PR        | ∅

* Iterate through all ApiResource declarations instead of only using the first one
* Remove `is_alternate_resource_metadata` check that was hiding additional resources
* Allows single PHP class with multiple #[ApiResource] attributes to be fully documented
@soyuka soyuka force-pushed the fix/hydra-multiple-resources branch from 7239b35 to 87862ba Compare February 13, 2026 06:09
@soyuka soyuka changed the base branch from 4.2 to main February 13, 2026 06:09
@soyuka soyuka merged commit 4cd3468 into api-platform:main Feb 13, 2026
1 check passed
@soyuka soyuka deleted the fix/hydra-multiple-resources branch February 13, 2026 06:12
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