Releases: api-platform/core
v3.2.14
What's Changed
- fix(openapi): method OpenApi::getComponents must always return a Components object by @vincentchalamon in #6158
- fix(doctrine): test array type existence before using it by @emmanuel-tilleuls in #6161
- fix: API Test Case normalization context when none is provided by @kevin-macquer-omnilog in #6157
- feat(metadata): enable Symfony autoconfiguration on UriVariableTransformerInterface by @vincentchalamon in #6159
- fix: return null instead of exception for GraphQL Query operation by @Zippovich2 in #6118
- fix(openapi): skip requestBody if input is false by @priyadi in #6163
- fix(symfony): throw metadata exception by @soyuka in #6164
- test(symfony): empty collection without fields by @soyuka in #6165
New Contributors
- @emmanuel-tilleuls made their first contribution in #6161
- @kevin-macquer-omnilog made their first contribution in #6157
- @Zippovich2 made their first contribution in #6118
Full Changelog: v3.2.13...v3.2.14
v3.2.13
What's Changed
- fix(hydra): move owl:maxCardinality from JsonSchema to Hydra by @vincentchalamon in #6136
Full Changelog: v3.2.12...v3.2.13
v3.3.0-alpha.1
What's Changed
-
fix(serializer): fix TagCollector for JSONAPI and HAL format by @usu in #6076
-
fix(graphql): use normalization context to get item from IRI by @bkosun in #5915
-
fix(doctrine): constants case sensitive values by @soyuka in #6066
-
feat(serializer): collect cache tags using a TagCollector by @usu in #5758
-
feat(parametervalidator): create api-platform/parameter-validator component by @aegypius in #6080
-
feat(subresource): Link Security by @KDederichs in #5290
-
feat(symfony): request and view kernel listeners by @soyuka in #6102
Components:
api-platform/parametervalidator
api-platform/doctrine-common
api-platform/doctrine-orm
api-platform/doctrine-odm
A new interface ApiPlatform\Serializer\TagCollectorInterface
allows to collect cache tags (IRIs) during serialization instead of using API Platform defaults.
An experimental feature (#5290) gives the ability to use security
on sub resource links.
If you use controllers you should use:
api_platform:
use_symfony_listeners: true
The default is false
you can get rid of the event_listeners_backward_compatibility_layer
flag. You can now force an operation state, for example:
<?php
#[Delete(validate: true)]
#[Post(read: true)]
class Book {}
These namespaces are deprecated:
ApiPlatform\Api
ApiPlatform\Exception
ApiPlatform\Problem
ApiPlatform\Action
ApiPlatform\Util
Most of the classes have moved to ApiPlatform\Metadata
.
New Contributors
- @aegypius made their first contribution in #6080
- @GromNaN made their first contribution in #6090
- @dependabot made their first contribution in #6075
Full Changelog: v3.2.11...v3.3.0-alpha.1
v3.2.12
What's Changed
- docs: better generics support for State\ProcessorInterface by @dunglas in #6103
- fix(jsonschema): keep integer and number properties draft 4 compliant by @llupa in #6098
- fix(graphql): remove count query if paginationInfo is not requested by @xavierleune in #6068
New Contributors
Full Changelog: v3.2.11...v3.2.12
MongoDB ODM is now compatible with Symfony 7.
v3.2.11
What's Changed
- fix(symfony): use Type constraint violation code instead of exception code by @norkunas in #6064
- fix(serializer): integrate root_resource_class to cache key by @soyuka in #6073
- fix: In PHP, requests without content-type will result in an empty content-type, not null by @priyadi in #6078
- compatibility with OpenAPI 3.0 by @Romaixn in #6065
For OpenAPI 3.0, the spec_version=3.0.0
query parameter will force OpenAPI to the 3.0 version. This option is also available through the command line.
Full Changelog: v3.2.10...v3.2.11
v3.1.25
v3.2.10
What's Changed
- Hotfix/fix attribute filter parsing by @celinederoland in #6062
New Contributors
- @celinederoland made their first contribution in #6062
Full Changelog: v3.2.9...v3.2.10
v3.2.9
v3.2.8
What's Changed
- ci: php 8.3 by @soyuka in #6013
- fix: remove link to ApiDocumentation when doc is disabled by @jderusse in #6029
- ci: use sebastian/comparator<5.0 by @soyuka in #6044
- fix(jsonschema): integer instead of int @sarim in #6049
- feat(metadata): throw exception if itemUriTemplate if used on invalid operation (xml/yaml formats) by @vincentchalamon in #6053
- fix(jsonschema): keep format subschema generation by @soyuka in #6055
- fix(metadata): item_uri_template conflict with context on relation by @vincentchalamon in #6015
- fix(doctrine): get reference with identifier value by @soyuka in #6019
- fix(symfony): use Type constraint violation code instead of exception code by @norkunas in #6037
- fix(symfony): fallback content-type error format by @soyuka in #6056
- fix(serializer): inconsistency in context concatenation with fetch_data by @anoziere in #6050
- fix(symfony): do not use metadata when merging schema constraints in Collection constraint by @alanpoulain in #6057
- fix(jsonschema): add iri example @ERuban in #5901
New Contributors
Full Changelog: v3.2.7...v3.2.8
v3.1.24
What's Changed
- ci: use sebastian/comparator<5.0 by @soyuka in #6044
- fix(doctrine): get reference with identifier value by @soyuka in #6019
- fix(symfony): use Type constraint violation code instead of exception code by @norkunas in #6037
- fix(serializer): inconsistency in context concatenation with fetch_data by @anoziere in #6050
- fix(jsonschema): add iri example @ERuban in #5901
New Contributors
Full Changelog: v3.1.23...v3.1.24