File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## Overview
44
5- v6 is mostly a cleanup release with updated dependencies. The main changes are:
5+ ` v6 ` is mostly a cleanup release, with updated dependencies. The main changes are:
66
7- * Minimum required PHP version is now 8.2
8- * ...
7+ * The minimum required PHP version is now 8.2
8+ * ` radebatz/type-info-extras ` is now a required dependency
9+ * ` TypeInfoTypeResolver ` now properly handles composite types (unions and intersections)
10+ * Some deprecations have been removed (see below)
11+ * The ` MediaType::encoding ` property now only accepts ` Encoding ` objects (BC break)
912
1013For most installations upgrading should not require any changes.
1114
15+ ## Type resolvers
16+ With ` radebatz/type-info-extras ` now being a required dependency, the ` TypeInfoTypeResolver ` is not the de-facto default
17+ resolver.
18+
19+ The ` LegacyTypeResolver ` can still be used as a drop-in replacement, but is now marked ` deprecated ` and will be removed
20+ in v7.
21+
1222## Removed deprecated elements
1323### Methods ` \Openapi\Generator::getProcessors() ` and ` \Openapi\Generator::setProcessors() `
1424Use ` getProcessorPipeline() ` and ` setProcessorPipeline(new Pipeline(...)) ` methods instead
Original file line number Diff line number Diff line change 1212use OpenApi \Generator ;
1313use OpenApi \TypeResolverInterface ;
1414
15+ /**
16+ * @deprecated use `TypeInfoTypeResolver` instead
17+ */
1518class LegacyTypeResolver extends AbstractTypeResolver
1619{
1720 /** @inheritdoc */
You can’t perform that action at this time.
0 commit comments