Open
Conversation
Owner
cr3a7ure
commented
Mar 25, 2021
| Q | A |
|---|---|
| Bug fix? | yes/no |
| New feature? | yes/no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | api-platform#1234, api-platform#5678 |
| License | MIT |
| Doc PR | api-platform/docs#1234 |
Co-authored-by: Nicolas LAURENT <aegypius@users.noreply.github.com> Co-authored-by: Javier Sampedro <jsampedro77@gmail.com> fix(laravel): serializer attributes on Eloquent methods (#7416) fixes #7289 fixes #7338 fix(validator): custom message was not translated (#7424) fixes #7336 fix(serializer): resilient denormalizeRelation capability (#7474) fix(doctrine): properly set properties according to interface (#7487) fix(graphql): stateOptions to get filter class (#7485)
Co-authored-by: Giorgio Premi <giorgio.premi@libraesva.com>
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
Co-authored-by: soyuka <soyuka@users.noreply.github.com>
…solution (#7756) * fix(serializer): prevent context leakage with service-based entity resolution (#7733) | Q | A | ------------- | --- | Branch? | 4.2 | Tickets | Fixes #7733 | License | MIT | Doc PR | ∅ * Create OperationResourceResolverInterface service to validate entity-to-resource mappings * Add framework-specific decorators (Doctrine, Eloquent) to handle stateOptions validation * Remove force_resource_class propagation to nested objects preventing DateTimeImmutable issues
# Conflicts: # CHANGELOG.md # src/JsonLd/Serializer/ItemNormalizer.php # src/Metadata/Tests/Property/Factory/SerializerPropertyMetadataFactoryTest.php # src/Serializer/AbstractItemNormalizer.php # src/Symfony/Bundle/Resources/config/jsonld.php
…ge (#7764) | Q | A | ------------- | --- | Branch? | main | Tickets | ∅ | License | MIT | Doc PR | ∅ * Revert output+item_uri_template early-return from d70eec5 back to 40ad568's approach * Use operation shortName directly for item_uri_template @type instead of resource-level lookup * Fixes @type being "Recipe" instead of "ItemRecipe" when operation has explicit shortName
Co-authored-by: GeLo <eric.geloen@rapid-flyer.com>
| Q | A | ------------- | --- | Branch? | main | Tickets | ∅ | License | MIT | Doc PR | ∅ ObjectMapperProvider only handled PaginatorInterface, but ODM's PartialPaginator implements PartialPaginatorInterface which doesn't extend PaginatorInterface, causing mapping to fail on the paginator object itself.
…7773) * fix(hydra): hide search key when there is parameter without filter * Update tests
* fix(hydra): unique class @id with subClassOf for semantic types | Q | A | ------------- | --- | Branch? | main | Tickets | ∅ | License | MIT | Doc PR | ∅ * Always use #ShortName as Hydra class @id instead of schema.org type URIs * Expose semantic types via rdfs:subClassOf to prevent api-doc-parser conflation * Property ranges now consistently reference #ShortName instead of type URIs
…er (#7759) * Migrate IriFilter to use NestedPropertyHelperTrait for nested properties * Migrate AbstractUuidFilter from OrmPropertyHelperTrait to NestedPropertyHelperTrait * Add comprehensive tests for nested filtering with both filters
…7774) * SplObjectStorage keyed by entity only allowed one update per entity; replaced with array to support multiple entries per resource * storeObjectToPublish iterates all resources in the metadata collection and stores a separate entry for each one that has mercure enabled * publishUpdate uses the specific operation for normalization context and IRI resolution Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…Interface (#7776) * feat: use values from ProblemExceptionInterface * Add test case to JsonProblemTest * Apply change to State/ApiResource/Error.php as well * Fix StrictParametersTest in line with detail of ParameterNotSupportedException
#7763) * fix(symfony): use AsCommand description parameter for console commands | Q | A | ------------- | --- | Branch? | 4.2 | Tickets | Closes #7616 | License | MIT | Doc PR | ∅ Move command descriptions from configure() to AsCommand attribute to follow Symfony 6+ best practices and eliminate deprecation warnings in Symfony 8.
…uration option (#7775) * feat: add global defaults.normalization_context.gen_id configuration option * Adds global genId option support Allows configuring the `genId` option globally via `defaults.normalization_context`. Adds new functional tests to verify that `genId` works as expected when configured globally, and that the `genId` option on `ApiProperty` takes precedence over the global option. * lint * fix unit tests --------- Co-authored-by: Olivier Massot <olivier.massot@2iopenservice.fr>
Follow-up to 4fc0805 which removed the incorrect shortName 'ItemRecipe' from the Recipe fixture. The test assertions were not updated accordingly and broke during the 4.2 merge.
…d by another class (#7778)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.