- Fixed bug when generating cached routes with a relative path to the spec file.
- Added support for more string formats when generating routes:
- date
- date-time
- byte
- Added support for custom string patterns using the
patternkeyword. - Automatic dark/light mode for the Swagger UI based on system settings.
- Improved spec generation.
- Bumped requirements to Mako 12+ and PHP 8.5+
- Dropped support for the non-official
regex:...format (replaced bypattern). - Updated dependencies.
- The UI is now specified using the
Uienum.
- Added Elements UI.
- Added Scalar UI.
- Updated Swagger UI to the latest version.
- Bumped requirements to Mako 11+ and PHP 8.4+
- Ensure that the Swagger UI docs work if "clean URLs" are disabled.
- 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/specroute that exposes the OpenApi spec. - Automatically registers
/openapi/docsroute that exposes a Swagger UI or Redoc UI.
- Now possible to specify the OpenApi version when generating the spec (3.0.0 or 3.1.0).
- The spec generator now supports the new Mako 10 directory structure as well as the legacy structure.
- Bumped requirements to Mako 10+ and PHP 8.1+
- A format is no longer required for integers.
- It is now possible to specify the output path of the generated route file.
- Parameters are now supported on both the path level and the operation level.
- The
OpenApiTrait::getRouteName()method now supports invokable classes.
- Added
no-dotpath parameter pattern. - Added possibility of defining custom regex based path parameter patterns.
- Only base route parameter patterns on path parameters.
- Added a helper trait with the following methods:
OpenApiTrait::getRouteName()
- Added experimental support for route parameter patterns based on parameter formats.
- Path parameters are parsed on path level instead of on request method level.
Initial release 🎉