v0.12.0
What's Changed
Added
- Added ability to group and sort endpoints explicitly by
#[Group]
attribute. Changes the default ordering of endpoints to the order of their declaration by @romalytvynenko in #681 - Add ability to explicitly name class based schemas using
#[SchemaName]
attribute by @romalytvynenko in #682 - Added support for manually documenting request parameters using attributes
#[QueryParameter]
,#[HeaderParameter]
,#[CookieParameter]
,#[PathParameter]
by @romalytvynenko in - Added
#[BodyParameter]
attribute support for documenting request body parameters by @romalytvynenko in #686 - Ensure consistent class names and avoid schema duplication. by @overtrue in #670
- Added
self::*
type inference support; added support of creating types from array values by @romalytvynenko in #687 - New configuration API (experimental) by @romalytvynenko in #696
🚨 Breaking changes 🚨
TypeToSchema
extensions andTypeTransformer
cannot be created by the container just by passing the class name anymore. This is due to theTypeTransformer
depending onComponents
class which is not global, but exists per API document.
This is very unlikely to affect you unless you developed the extensions and instantiated Scramble internal components yourself using the container and passing just the classname.
New Contributors
Full Changelog: v0.11.33...v0.12.0