Skip to content

Releases: mako-framework/open-api

4.0.1

05 Jan 12:18
a32bbc5

Choose a tag to compare

Bugfixes

  • Fixed bug when generating cached routes with a relative path to the spec file.

4.0.0

05 Jan 11:37
7d7c471

Choose a tag to compare

New

  • Added support for more string formats when generating routes:
    • date
    • date-time
    • byte
  • Added support for custom string patterns using the pattern keyword.
  • Automatic dark/light mode for the Swagger UI based on system settings.
  • Improved spec generation.

Changes

  • Bumped requirements to Mako 12+ and PHP 8.5+
  • Dropped support for the non-official regex:... format (replaced by pattern).
  • Updated dependencies.
  • The UI is now specified using the Ui enum.

3.1.0

05 Sep 21:27
6cf0d6a

Choose a tag to compare

New

  • Added Elements UI.
  • Added Scalar UI.

3.0.1

05 Sep 20:04
26e99e3

Choose a tag to compare

Updates

  • Updated swagger UI to the latest version.

3.0.0

03 Jan 10:12
92c97c2

Choose a tag to compare

  • Bumped requirements to Mako 11+ and PHP 8.4+

2.2.1

29 Oct 20:19
7a0ae86

Choose a tag to compare

2.2.1 (2024-10-29)

Fixed

  • Ensure that the swagger docs work if "clean URLs" are disabled.

2.2.0

25 Jan 21:36
3592bcd

Choose a tag to compare

2.2.0 (2023-11-23)

New

  • Added a controller that exposes three endpoints:
    • The OpenApi spec
    • A Redoc UI
    • A Swagger UI
  • Added a new route registrar class:
    • Registers routes from a cache file or at runtime from the OpenApi yaml spec.
    • Automatically registers /openapi/spec route that exposes the OpenApi spec.
    • Automatically registers /openapi/docs route that exposes a Swagger or Redoc UI.

2.1.0

23 Nov 21:33
2953a79

Choose a tag to compare

New

  • Now possible to specify the OpenApi version when generating the spec (3.0.0 or 3.1.0).

Fixed

  • The spec generator now supports the new Mako 10 directory structure as well as the legacy structure.

2.0.0

23 Nov 19:19
da5afde

Choose a tag to compare

  • Bumped requirements to Mako 10+ and PHP 8.1+

1.2.4

19 Apr 13:09
ba0660d

Choose a tag to compare

Fixed

  • A format is no longer required for integers.