Releases: api-platform/core
Releases · api-platform/core
v4.2.15
What's Changed
- add
phpunit.baseline.xmlto .gitattributes by @gharlan in #7692 - fix: if the relationship is null the jsonapi output must present null by @elfin-sbreuers in #7686
- Fix issues with extending {XML,Yaml} -> {XML,Yaml} resources by @senghe in #5956
- fix: Change payload type from array to free-form object in schema by @DjordyKoert in #7694
- ci: hide progress from PHP-CS-Fixer by @alexislefebvre in #7696
- fix(doctrine): post with mapped relation by @soyuka in #7698
- fix(symfony): prevent symfony name converter service pollution by @soyuka in #7691
- Bump github actions by @VincentLanglet in #7700
- chore(symfony): custom rule to transform class-string to use instructions by @soyuka in #7708
- test: cover exception if property is null for filters by @Maxcastel in #7716
- fix Hydra JsonSchema SchemaFactory by @amenophis in #7718
- chore: split agents to reduce context usage by @soyuka in #7719
- fix(symfony): declare api_platform.normalizer.object fixes #7705 by @soyuka in #7717
- fix(laravel): properly transform invokable service to route action by @soyuka in #7720
New Contributors
- @elfin-sbreuers made their first contribution in #7686
- @senghe made their first contribution in #5956
- @DjordyKoert made their first contribution in #7694
Full Changelog: v4.2.14...v4.2.15
v4.2.14
What's Changed
- fix(doctrine): useless generateParameterName call by @VincentLanglet in #7679
- doc: fix CI badge on README by @alexislefebvre in #7683
- ci: run PHPUnit tests on Mysql and Pgsql by @VincentLanglet in #7680
- fix(laravel): use controller if declared by @soyuka in #7687
- fix(doctrine): PartialSearchFilter on multibyte characters by @VincentLanglet in #7688
- fix(symfony): fix for symfony/json_streamer 8.0 with enable_json_streamer by @aaa2000 in #7684
- fix(jsonschema): call to an undefined method
Symfony\Component\TypeInfo\Type::getClassName()by @Maxcastel in #7685
Full Changelog: v4.2.13...v4.2.14
v4.2.13
What's Changed
- Add phpdoc for array of some interface by @VincentLanglet in #7583
- fix(openapi): phpdoc operation response as array<int|string, OpenApi\Response> by @petski in #7660
- fix(symfony): pass missing arguments to
ConcernsResourceMetadataCollectionFactoryby @ttskch in #7676 - test(validator): improve ValidationException::violations schema by @VincentLanglet in #7673
- fix(metadata): fix losing content on error reponse with no output by @VincentLanglet in #7674
- chore(symfony): bump api platform components by @soyuka in #7677
New Contributors
Full Changelog: v4.2.12...v4.2.13
v4.2.12
Happy new year 2026 🎆!
What's Changed
- Add AsCommand attribute to replace deprecated getDefaultName() by @eneko-koraliving in #7633
- Allow operation element to be optional in XML by @yceruto in #7632
- DefinitionNameFactory: Add tests to cover groups with colon in JsonSchema by @Maxcastel in #7630
- fix(openapi): respect schema type for non-collection parameter documentation by @soyuka in #7634
- fix(serializer): wrap exception when collecting object errors by @soyuka in #7644
- fix(doctrine): fix partial fetch when relation switches context by @jderusse in #7645
- fix(doctrine): fix partial fetch with same entity included multiple time with different fields by @jderusse in #7647
- fix(doctrine): escape values with
%or_in search filter by @VincentLanglet in #7653 - fix(doctrine): Handling of parameter description by @VincentLanglet in #7656
- fix(openapi): properly document list parameters by @soyuka in #7658
- Enhance exception message for non-object relation by @rvanlaak in #7646
- fix(laravel): deprecation in definition name factory by @soyuka in #7661
- fix(test): change string to int for status in JsonApiTest::testError by @Maxcastel in #7631
- test(symfony): ensure
pagination_maximum_items_per_pagedefaults correctly when config defaults key is absent by @Maxcastel in #7609
New Contributors
- @eneko-koraliving made their first contribution in #7633
- @yceruto made their first contribution in #7632
Full Changelog: v4.2.11...v4.2.12
v4.2.11
What's Changed
- fix(symfony): enable to set default values for stale-while-revalidate and stale-if-error cache headers via config file by @ttskch in #7606
- fix(symfony): check if required package is installed before configuri… by @aaa2000 in #7607
- fix(state): delete with stateOptions and object mapper by @soyuka in #7615
- chore: upgrade justinrainbow/json-schema by @aaa2000 in #7619
- fix(openapi): enable ReDoc when Swagger UI is disabled by @4lxndr in #7617
- fix(jsonld): allow mapping collection output with itemUriTemplate by @soyuka in #7620
- fix(laravel): allow custom error handler for non-api operations by @soyuka in #7622
- Fix #7599 Allow overide of CsvEncoder::AS_COLLECTION_KEY in context by @Stav88 in #7613
- fix(jsonapi): handle missing attributes in ErrorNormalizer by @daFish in #7569
New Contributors
Full Changelog: v4.2.10...v4.2.11
v4.2.10
What's Changed
- fix: Add support for the Deprecation header by @aaa2000 in #7582
- Disable Swagger UI and ReDoc when Swagger is off by @jderusse in #7586
- fix(metadata): implement MappedObjectPaginator for fixing pagination on mapped data by @Spomky in #7591
- fix(metadata): property placeholder on multiple parameters by @soyuka in #7598
- fix(metadata): use operation output class for mapping instead of operation class by @Spomky in #7601
- fix(laravel): belongs-to-many relations dont have a get-foreign-key-name method by @mariantrifu in #7589
- fix(symfony): do not redeclare object_mapper by @soyuka in #7602
- ci: lowest tests object_mapper framework bundle by @soyuka in #7604
- fix(symfony): do not load docs routes if docs disabled by @alexndlm in #7448
- Fix IRI generation with link parameter resources by @Geekimo in #7520
New Contributors
- @Spomky made their first contribution in #7591
- @mariantrifu made their first contribution in #7589
- @Geekimo made their first contribution in #7520
Full Changelog: v4.2.9...v4.2.10
v4.2.9
What's Changed
Warning
Inside a filter you may receive a scalar value where you expected an array especially when using a custom filter extending the AbstractFilter, with a :property placeholder. Read more at #7547
- fix: consistent :property placeholder behavior by @NathanPesneau in #7547
- fix(state): object mapper with list by @senaria in #7564
- fix(swagger) use app.request.query.get() directly by @pyatnitsev in #7578
- fix(serializer): render BCMath\Number (PHP 8.4+) as string instead of object by @aaa2000 in #7555
- fix(symfony): skip argument resolver when context is not api platform by @soyuka in #7579
- fix(metadata): filter interface context php doc by @VincentLanglet in #7560
- fix(swagger): use current route for footer links by @Piairre in #7580
- fix(json-schema): definition name is aware of the json schema type by @VincentLanglet in #7557
- doc: improve filter guides by @soyuka in #7584
- @senaria made their first contribution in #7564
- @komandar made their first contribution in #7568
- @pyatnitsev made their first contribution in #7578
- @Piairre made their first contribution in #7580
New Contributors
Full Changelog: v4.2.7...v4.2.9
v4.1.28
Full Changelog: v4.1.27...v4.1.28
v4.2.7
What's Changed
- chore: support symfony 8 by @soyuka in #7561
- Fix/disable pagination maximum items per page by @Maxcastel in #7553
- fix(symfony): disable Swagger UI and keep openapi.json by @Maxcastel in #7549
- fix(state): never map a response by @soyuka in #7543
- fix(metadata): repeatable mutators by @NathanPesneau in #7542
New Contributors
- @Maxcastel made their first contribution in #7553
Full Changelog: v4.2.6...v4.2.7