Oooas Versions Save

An object oriented approach to generating OpenAPI specs, implemented in PHP.

v2.4.1

4 years ago

Fixed

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

v2.4.0

4 years ago

Added

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

v2.3.1

4 years ago

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

4 years ago

Added

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

v2.2.0

4 years ago

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

5 years ago

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

5 years ago

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

5 years ago

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

5 years ago

Fixed

  • Corrected typo in name, from Orientated to Oriented.

v1.0.1

5 years ago

Fixed

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