Skip to content

Releases: mtrajano/laravel-swagger

v0.6.4

22 Nov 01:39
2082309
Compare
Choose a tag to compare

Fixed

  • Composer.json version of phpdocumentor/reflection-docblock/phpdocumentor/reflection-common clashing with laravel's dependencies

v0.7.0-alpha

17 Feb 23:52
f265ffc
Compare
Choose a tag to compare
v0.7.0-alpha Pre-release
Pre-release

Added

  • Added schema definitions for models (Defined on @model annotation on methods or controller).
  • Parsing on model relationships (if methods have a Relationship return type hint)
  • Example data on fields (if model has a factory associated with them)
  • Added responses based on routes http methods, @throws annotations and auth middleware.
  • Added support to JWT authentication.
  • Added Swagger UI with docs.
  • Added docker environment for development support.
  • Automatically will generate docs on public path depending on config, /docs route by default.

Changed

  • Changed to get middlewares from controller too, instead of only from routes.
  • Changed command usage to not print on console or set in file.

v0.6.3

06 Feb 05:12
f265ffc
Compare
Choose a tag to compare

Fixed

  • Bug introduced in last release where params weren't getting added

v0.6.2

04 Feb 14:05
45c2b0b
Compare
Choose a tag to compare

Fixed

  • Fix for calling __toString() on a ReflectionType

v0.6.1

06 Dec 13:41
4b07bd8
Compare
Choose a tag to compare

Fixed

  • Fixed bug when getting enum rules that broke when the rule was a closure or an object that did not implement __toString

v0.6.0

21 Oct 01:26
Compare
Choose a tag to compare

Added

  • Support for Laravel 6
  • Support for PHPUnit 8

v0.5.2

29 Aug 12:40
Compare
Choose a tag to compare

Fixed

  • Fixed bug in generatePath where it would error out getting summary/description if route was a Closure

v0.5.1

28 Aug 13:10
1033109
Compare
Choose a tag to compare

Fixed

  • Fixed getting getAction for users with a laravel version older than 5.5, the optional key wasn't a parameter in previous versions

v0.5.0

28 Aug 12:56
Compare
Choose a tag to compare

Changed

  • parseDescriptions config option was changed to parseDocBlock
  • parseDocBlock now takes the first part of your docBlock as the summary if parseDocBlock is true, it will default to empty if false.
  • parseDocBlock will take the rest of the docBlock (other than annotations) as the route's description.
  • depracated will now default to false if parseDocBlock is false

v0.4.0

26 Aug 23:03
Compare
Choose a tag to compare

Added

  • Ability to parse docBlock comments and add these to the route's description
  • Deprecated key depending if there is a @deprecated annotation in the docBlock
  • parseDescriptions option that will let you turn off the docBlock parsing and will add an empty description

Changed

  • {REQUEST_METHOD} {PATH} was previously stored in the route's description, this has been moved to the route's summary key