Skip to content

Releases: goldspecdigital/oooas

v2.4.1

18 Jul 21:52
32ff15f
Compare
Choose a tag to compare

Fixed

  • Properties that should accept numeric (integer and float) values , but only allowed integers, now allow for both integers and floats.

v2.4.0

27 Jun 11:05
Compare
Choose a tag to compare

Added

  • Added formUrlEncoded() creation method in MediaType object (for application/x-www-form-urlencoded request bodies).

v2.3.1

24 Jun 09:10
0936344
Compare
Choose a tag to compare

Changed

  • The branching strategy no longer makes use of the develop branch. Instead all feature/hotfix branches should be based off of master.
  • The composer test script now makes reference to the individual test:style and test:unit scripts.

Fixed

  • The test suite PSR-4 autoloading has now been moved to autoload-dev within the composer.json file.

v2.3.0

21 Jun 22:32
35080ab
Compare
Choose a tag to compare

Added

  • The toJson() method now allows you to specify the $options parameter to proxy to the json_encode() function.

v2.2.0

21 Jun 22:05
ed8ebd3
Compare
Choose a tag to compare

Added

  • $ref can now be used in place of all objects.
  • The Components object now supports all fields (with exception to callbacks).

Changed

  • The create() static method has now been moved to the BaseObject class with a return type also being BaseObject. If you are extending any object classes and overriding the create() method, then be sure to update your return type. DocBlock type hinting has been provided to indicate a static return type, so your IDE should still be able to provide autocompletion for child class members.

Fixed

  • Description updated in composer.json.
  • Linter commands are now using cache when called in the composer.json scripts.

v2.1.0

21 May 15:41
473ae1a
Compare
Choose a tag to compare

Added

  • You can now specify on an Operation object that it should not have any security by invoking the noSecurity() method on an instance of it.

v2.0.1

20 May 12:38
980376e
Compare
Choose a tag to compare

Fixed

  • The SecurityRequirement object now accepts a single SecurityScheme along with an array of scopes. This is because it was outputting incorrect data, and its purpose was misleading. It now acts as a way to specify a single SecurityScheme along with any scopes. Any object that accepts a SecurityRequirement object, always accepts an array of them, so you can still specify several SecurityScheme objects by wrapping them in a SecurityRequirement.

v2.0.0

19 May 15:08
f5ef7d7
Compare
Choose a tag to compare

Added

  • The Response class now has helper methods for common HTTP responses.
  • Missing object from the OpenAPI spec have had their corresponding classes added.
  • Support added for the OpenAPI 3.0.2 spec.
  • Test cases for each object class.

Changed

  • Object class constructors (and create() methods) now only accept the optional $objectId parameter which is used in several scenarios.
  • Removed Paths class and instead the OpenApi class has a variadic paths() method which takes any number of PathItem instances.
  • Class constants now have their name prefixed with the property it is intended to be used with.

Fixed

  • The OpenApi class is now immutable like all the other object classes.

v1.0.2

17 May 09:09
18f4275
Compare
Choose a tag to compare

Fixed

  • Corrected typo in name, from Orientated to Oriented.

v1.0.1

16 May 19:59
f8311dc
Compare
Choose a tag to compare

Fixed

  • Provided a much simpler example in the README.md.