Releases: zircote/swagger-php
Releases · zircote/swagger-php
4.1.1
What's Changed
- Extend PathParameter tests with schema and description. by @DerManoMann in #1045
- Add missing $ref and headers properties to
Response
by @DerManoMann in #1048 - Detect promoted properties by @DerManoMann in #1049
Full Changelog: 4.1.0...4.1.1
2.1.1
OpenAPI 3.1.0 and separate Attribute namespace
Main feature is a switch to OpenAPI 3.1.0 wih support for summary/description next to $ref
.
Another change is to move attributes into their own namespace OpenAPI\Attributes
which solves warnings from
static analysers and does make the code more maintainable.
Finally. named arguments for attributes extending from Schema
have been clean up and updated.
What's Changed
- Split of annotations and attributes by @DerManoMann in #1024
- Update attribute namespace in code samples by @DerManoMann in #1034
- feat: openapi: 3.1.0 summary and description fields for refs by @bfanger in #1030
- OpenApi 3.1.0 updates for
Licence
by @DerManoMann in #1038 - Rationalise attribute parameters for types that inherit from Schema by @DerManoMann in #1037
Full Changelog: 4.0.5...4.1.0
3.3.3
What's Changed
- add psr/log 2.0 to 3.x branch by @Gemorroj in #1006
- Add PHP 8.1 to build matrix by @DerManoMann in #1041
Full Changelog: 3.3.2...3.3.3
Bug fixes and tweaks
What's Changed
- Add missing parameter attribute args by @DerManoMann in #1025
- Minor fixes by @DerManoMann in #1033
- Reliably pick root schema in Analysis::getSchemaForSource() by @DerManoMann in #1028
Full Changelog: 4.0.4...4.0.5
4.0.4
What's Changed
- Make
TokenScanner
handle multiple namespaces in single file by @DerManoMann in #1020
Full Changelog: 4.0.3...4.0.4
4.0.3
What's Changed
- Fix token scanning/parsing for PHP8 named arguments by @DerManoMann in #1019
Full Changelog: 4.0.2...4.0.3
4.0.2
What's Changed
- Allow composer/package-versions-deprecated updates by @DerManoMann in #1015
- Fix
TokenScanner
bug around${
and{$
token handling. Fixes #1016 #1005 by @DerManoMann in #1017
Full Changelog: 4.0.1...4.0.2
4.0.1
What's Changed
- add psr/log 2.0 and 3.0 by @Gemorroj in #1008
- Make phpstan happier (a bit) by @DerManoMann in #1013
- Parse anonymous functions by @DerManoMann in #1011
Full Changelog: 4.0.0...4.0.1
swagger-php v4
- PHP 8.1 support
- Annotations can be used as PHP attributes
- New annotation
PathParameter
added - Removal of deprecated static properties used to configure the underlying Doctrine annotations parser
- New annotation
Attachable
to allow to attach any data to annotations/attributes without affecting the generated spec