Releases: byjg/php-swagger-test
Release 5.0.0
What's Changed
This pull request includes several updates to modernize the codebase, improve type safety, and enhance testing. Key changes involve updating PHP versions, adding Psalm for static analysis, renaming and adding new run configurations, and refactoring code to use stricter type declarations.
Updates to Testing and CI:
.github/workflows/phpunit.yml
: Added PHP 8.3 to the test matrix and removed older versions (7.4, 8.0). Also added Psalm static analysis to the CI pipeline. [1] [2].travis.yml
: Removed the Travis CI configuration in favor of GitHub Actions.
Configuration and Dependency Updates:
composer.json
: Updated PHP requirement to>=8.1
, updated dependencies to their latest versions, and addedvimeo/psalm
for static analysis. [1] [2]psalm.xml
: Added a new configuration file for Psalm static analysis.
Code Refactoring for Type Safety:
src/AbstractRequester.php
: Refactored methods to use stricter type declarations and updated exception handling. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]src/ApiRequester.php
: Updated to use stricter type declarations and improved exception handling. [1] [2] [3]
Documentation and Configuration:
.idea/runConfigurations/Main.xml
: Renamed fromTest_Project.xml
and updated configuration..idea/runConfigurations/Psalm.xml
: Added a new run configuration for Psalm.
These changes collectively enhance the project's compatibility with modern PHP versions, improve code quality through static analysis, and ensure better type safety across the codebase.
Full Changelog: 4.9.2...5.0.0
Release 4.9.2
Release 4.9.1
What's Changed
- Remove deprecated var usage by @vitormattos in #77
- Fetch schema from content by @Fantom409 in #78
- README.md and minor adjustments by @byjg in #75
New Contributors
- @Fantom409 made their first contribution in #78
Full Changelog: 4.9.0...4.9.1
Release 4.9.0
What's Changed
- Fixed some broken english by @byjg in #70
- Make compatible with php8 by @vitormattos in #65
- Fix mach string type by @vitormattos in #66
- Bump Major Components Changes by @byjg in #74
Full Changelog: 3.1.4...4.9.0
Release 3.1.4
Follow the OpenAPI specification and allow regex without an initial and final slash (/
).
PR #71
Release 3.1.3
Use Webrequest component compatible with PHP 5.6 --> 8.0
Release 3.1.2
Enable allOf
work with references PR #63
Release 3.1.1
Added the following specifications:
- additionalProperties
- allOf
- oneOf
- pattern matching
Release 3.1.0
Some Refactory in the code:
- Using PSR-7 implementation in the ApiRequester
- Remove URI (dependency from WebRequest)
- Code clean up.
- Change the HttpClient to support Mock HTTP
- Mock example.
- ApiRequester now supports any PSR7 RequestInterface implementation by using the method withPsr7Request()
- Support to parameter in formData (for upload files)
Release 3.0.0
This is a refactory of PHP Swagger to split in two different classes the Swagger and OpenApi classes.
The main changes are:
- Separation of the OpenApi 3.0 code from Swagger 2.0 code;
- Renamed namespace from \ByJG\Swagger to \ByJG\ApiTools
- Added a Factory to Schema in order to detect automatically what specification is.
- Added the nullable to OpenApi specification
- removed setUp() from ApiTestCase class to make it compatible with all PHPUnit versions. issue #44
- Optional HTTP transport make it possible mock the HTTP Requests #41
- You can create a Swagger/OpenApi instance from an array. It make possible you use external YAML parser #43
- Some small issues #42
- Some code cleanup.
This is a break change feature, so it is necessary bump the major version.
Thank you to all contributors to this release :)