Releases: cebe/php-openapi
Releases · cebe/php-openapi
Version 1.8.0
What's Changed
Compatibility:
- Added Support for Symfony 7 and PHP 8.2, 8.3 by @tacman (#212)
- Allow
jsonrainbow/json-schema
version 5 and 6 by @tacman (#227) - PHPStan 1.x support by @rogervila (#180)
Features and Fixes:
- Hold raw spec data when reading specifications, added a getter
getRawSpecData()
by @SOHELAHMED7 (#228) - Resolve: Unable to reference other local json file by @SOHELAHMED7 (#218)
- Improve usage of Security and SecurityRequirement by @SOHELAHMED7 (#225)
- Fix: Referenced Parameters compiling to Object instead of Array by @SOHELAHMED7 (#234)
- Added test to confirm referenced parameters are compiling to arrays by @Aribros (#195)
- Fix resolving of relative paths in references by @Aribros (#166, #164, #191)
Doucmentation:
- Resolve: Document how to read schema properties by @SOHELAHMED7 (#222)
New Contributors
- @Sarke made their first contribution in #196
- @googoogajoob made their first contribution in #188
- @SOHELAHMED7 made their first contribution in #222
- @rogervila made their first contribution in #180
- @tacman made their first contribution in #227
Full Changelog: 1.7.0...1.8.0
Version 1.7.0
Improvements:
- Support for PHP 8.1, thanks @om4csaba, @shadowhand, @simPod
- #160 Flags for
json_encode()
inWriter::writeToJson()
, thanks @ValikoDorodnov
Version 1.6.0
Bugfixes:
- #100 Fixed a bug with merging PathItems where extension properties (
x-*
) were not present in the merge result (thanks @marcelthole) - #131 Adjust default value for
Schema::$nullable
when no type is specified.nullable
will befalse
by default when a type is specified butnull
when no type is specified. - #77 Fixes default value for
exclusiveMinimum
andexclusiveMaximum
only returnfalse
whenminimum
ormaximum
is specified, defaults tonull
otherwise. - #125 Fix OpenAPI v3.0 Schema Violation: Array value found, but an object is required (thanks @om4james)
- #119 Stricter type checking when resolving references, avoid trying to call methods on array
- #144 Catch recursion when resolving inside included file
Dependencies:
Other changes:
- Reworked CI (thanks @simPod)
- Added Docker environment for local development
Version 1.5.2
Bugfixes:
- #87, #102 Fix PathItem::resolveReferences() for array fields, a PHP Notice had been thrown (thanks @izucken and @rv1971)
- #107 Inline references does not resolve relative references (thanks @marcelthole)
- #95 Adjust relative URLs for externalValue fields in Example Objects when inlining references.
Documentation:
- Fixed typos in README and CLI help (thanks @ssfinney)
Version 1.5.1
Bugs
- #94 Fixed resolving relative paths with multiple
../
(thanks @il-m-yamagishi)
Documentation
- #98 Added PHPStan Template annotations (thanks @marcelthole)
- #96 Added missing exeption annotation to
readFromJsonFile()
(thanks @yorickgirard)
Version 1.5.0
Improvements:
- Overall performance improvements and other optimization for loading references
- #63 Added option to only resolve external references (inlining)
Bugfixes:
- #74 Fix PHPDoc for
exclusiveMinimum
andexclusiveMaximum
to boolean (thanks @canvural) - #92 Resolving references to external files did not work correctly on windows (thanks @Insolita)
Other changes:
- #80 Changed minimum Symfony YAML version from
3.0
to3.4
(thanks @marcelthole) - #83 Tests are green on PHP 8 (thanks @canvural)
Version 1.4.2
- #61 Allow Symfony YAML 4.4 to be installed
Version 1.4.1
- #68 Fix: Crash with unresolved reference while instantiating Encoding (@karsa-mistmere)
Version 1.4.0
- #56 Added compatibility with
symfony/yaml:^5.0
- #49 Static Analysis using phpstan (@lookyman)
- #53 Added extra validation messages for parameters (@lezhnev74)
- #43 Improved command-line-tool output of
bin/php-openapi validate
(@mfrischbutter) - #42 Added
--silent
parameter to command-line-tool (@mfrischbutter) - #46, #52 Fix writing empty arrays to YAML file (@coatesap)
Version 1.3.4
- #57 Fix transitive reference resolving in the current document context