Releases: cebe/php-openapi
Releases · cebe/php-openapi
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
Version 1.3.3
- #44 Fix recursion issue with reading references which are included multiple times