Releases: api-platform/core
Releases · api-platform/core
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
v4.2.5
v4.2.2
What's Changed
- fix(jsonschema): make all required properties optional in PATCH operation with 'json' format by @ttskch in #7398
- fix(openapi): define items type for HydraCollectionBaseSchema hydra:m… by @Cafeine42 in #7419
- fix(validator): validation exception without constraint violation list by @soyuka in #7423
- fix(openapi): Improve response override by @VincentLanglet in #7428
- fix(state): object mapper with input different by @soyuka in #7435
- feat(symfony): Convert all service configuration files from XML to PHP by @GromNaN in #7433
- Fix assertMatchesJsonSchema on custom output DTO by @Cafeine42 in #7438
- fix(jsonschema/jsonld): make
@idand@typeproperties required only in the JSON-LD schema for output by @ttskch in #7397 - fix(hydra): genId false schema by @soyuka in #7440
- fix(hydra): add base schema to item of a collection by @soyuka in #7444
- fix(doctrine): group or filter in an AndWhere by @soyuka in #7445
- fix: allow description and other fields to be override seperately by @ceesvanegmond in #7442
- fix(symony): ensure the kernel is booted before using
KernelBrowser::loginUser()by @ttskch in #7446 - fix(state): object mapper on delete operation by @soyuka in #7447
- fix(symfony): align listeners context by @soyuka in #7449
New Contributors
- @ceesvanegmond made their first contribution in #7442
Full Changelog: v4.2.1...v4.2.2
v4.2.1
What's Changed
- fix(jsonld): hydra context w3.org updates by @soyuka in #7410
- fix(serializer): require api-platform/metadata:^4.2 by @soyuka in #7409
- fix(symfony): openapi property path for validation by @soyuka in #7411
- fix(openai): allow to override description in response by @VincentLanglet in #7412
- fix(schema): anyOf must contains an array, not an object by @Cafeine42 in #7399
- fix: handle generic schema in JsonSchema by @elliotbruneel in #7414
- fix(symfony): remove suggest ocramius/package-versions by @maxhelias in #7395
- fix(laravel): correct the example of swagger_ui.apiKeys config by @ttskch in #7392
- fix(pagination): make default value of
pagination_maximum_items_per_pagesame as Laravel version by @ttskch in #7396
New Contributors
- @Cafeine42 made their first contribution in #7399
- @elliotbruneel made their first contribution in #7414
Full Changelog: v4.2.0...v4.2.1
v4.1.25
v4.2.0
What's Changed
Features
- feat: json streamer by @soyuka in #7225
- feat(mongodb): partial pagination by @soyuka in #7352
- Allow throwing an access denied exception on denormalization of secured properties by @dwgebler in #7221
- feat(symfony): Add error classes options to OpenAPI config by @alexndlm in #7143
- feat(elasticsearch): add support for v9 by @darthf1 in #7180
- feat(doctrine): new search filters by @vinceAmstoutz in #7121
- feat(serializer): set the object-to-populate in deserializer context as soon as data !== null by @lyrixx in #7124
- feat(metadata): use PHP file as resource format by @loic425 in #7017
- feature(symfony): Add CSS Color Schema Restriction for Property Validation by @SebLevDev in #7215
- feat(symfony): Autoconfigure classes using
#[ApiResource]attribute by @GromNaN in #6943 - feat(doctrine): improve http cache invalidation using the mapping by @mrossard in #7319
- feat(metadata) Customize Resource & operations by @loic425 in #7213
- feat(symfony): object mapper with state options by @soyuka in #6801
- feat(doctrine): BackedEnumFilter allow multiple values similar to SearchFilter[exact] by @MeronNagy in #7129
- feat(serializer): handle defaultType for DiscriminatorMap by @alanpoulain in #7284
- feat(httpcache): add more cache directives to AddHeadersProcessor by @alanpoulain in #7008
- Add Error:setDescription by @VincentLanglet in #7329
Breaking changes
- Allow null on allowReserved and allowEmptyValue properties by @snoob in #7315
- fix(state): transform uri variable using ReadLinkParameterProvider by @soyuka in #7375
- feat(json-schema): mutualize json schema between formats by @soyuka in #6960
TypeInfo
- feat(jsonapi): use
TypeInfo'sTypeby @soyuka in #7100 - feat(hal): use
TypeInfotype by @soyuka in #7097 - feat(hydra): use
TypeInfo'sTypeby @soyuka in #7099 - feat(metadata/doctrine): Use
TypeofTypeInfoinstead ofPropertyInfoby @mtarld in #6979 - feat(serializer): type info by @soyuka in #7104
- feat(elasticsearch): use
TypeInfotype by @soyuka in #7098 - feat(openapi): use
TypeInfo'sTypeby @soyuka in #7096 - feat(laravel): use
TypeInfo'sTypeby @soyuka in #7101
Bug fixes
- fix(symfony): explicitly set the target when mapping entities to resources by @mrossard in #7311
- Only set name_converter for the default serializer by @mbeccati in #7365
- fix(openapi): no content schema by @soyuka in #7384
- fix: pagination via cursor on ApiResource operations by @valentindrdt in #7368
- fix(jsonld): various json streamer fixes by @soyuka in #7374
- fix(laravel): restore accidentally removed BooleanFilter by @vinceAmstoutz in #6881
- fix(httpcache): collection iri invalidation for mapped entities by @mrossard in #7353
- fix(state): object-mapper reuse related entity by @soyuka in #7300
- fix(httpcache): only map entites that are persisted by @soyuka in #7345
- feat(mongodb): Make
ParameterExtensioncontext more generic by @GromNaN in #7389
Miscellaneous
- feat(symfony): stop watch system provider/processor by @soyuka in #7299
- feat(openapi): license identifier by @soyuka in #7141
- fix(metadata): wrong method name in resource mutator by @soyuka in #7373
- Use class-string param type for Metadata::getClass by @VincentLanglet in #7307
- Remove internal from Metadata by @VincentLanglet in #7288
- fix(hal): rename package by @soyuka in #7386
- fix(metadata) Fix new PHP file resource extractor by @loic425 in #7193
- Fix/4372 skip null values in hal by @BacLuc in #7317
- fix(serializer): deprecate SerializerAwareProviderInterface and SerializableProvider by @vinceAmstoutz in #7348
v4.2.0-beta.1
What's Changed
- fix(httpcache): collection iri invalidation for mapped entities by @mrossard in #7353
- Only set name_converter for the default serializer by @mbeccati in #7365
- fix: pagination via cursor on ApiResource operations by @valentindrdt in #7368
- chore: remove @experimental flag from parameters by @soyuka in #7357
- chore: allow framework bundle:^6 by @soyuka in #7358
- fix(metadata): wrong method name in resource mutator by @soyuka in #7373
- fix(jsonld): various json streamer fixes by @soyuka in #7374
- fix(state): transform uri variable using ReadLinkParameterProvider by @soyuka in #7375
- fix: phpdoc for HttpOperation paginationViaCursor parameter by @emmanuel-averty in #7379
- fix(laravel): remove duplication code exception by @flug in #7378
- fix(metadata): compute isWritable during updates by @soyuka in #7383
- fix(openapi): no content schema by @soyuka in #7384
- Merge 4.1 by @soyuka in #7385
- fix(laravel): http cache compatibility by @soyuka in #7380
- fix(hal): rename package by @soyuka in #7386
New Contributors
Full Changelog: v4.2.0-alpha.3...v4.2.0-beta.1