Skip to content

Releases: byjg/php-swagger-test

Release 5.0.0

27 Oct 21:25
dfd9e6c
Compare
Choose a tag to compare

What's Changed

  • Defining PHP 8.1 as base version by @byjg in #79

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 added vimeo/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 from Test_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

04 Jun 23:46
2029ffb
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.9.1...4.9.2

Release 4.9.1

30 Dec 20:50
e9d12a6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 4.9.0...4.9.1

Release 4.9.0

21 May 21:05
8025692
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.1.4...4.9.0

Release 3.1.4

05 Oct 14:11
57c86fc
Compare
Choose a tag to compare

Follow the OpenAPI specification and allow regex without an initial and final slash (/).

PR #71

Release 3.1.3

07 Jun 06:32
c8cf925
Compare
Choose a tag to compare

Use Webrequest component compatible with PHP 5.6 --> 8.0

Release 3.1.2

03 Mar 17:38
9e58e21
Compare
Choose a tag to compare

Enable allOf work with references PR #63

Release 3.1.1

04 Jan 05:11
9931b8d
Compare
Choose a tag to compare

Added the following specifications:

  • additionalProperties
  • allOf
  • oneOf
  • pattern matching

Release 3.1.0

05 Jul 16:00
Compare
Choose a tag to compare

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

02 Apr 18:55
Compare
Choose a tag to compare

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 :)