$this in rule expressions and improve rules evaluation safety by @romalytvynenko in https://github.com/dedoc/scramble/pull/1145Security: addresses a potential code execution issue under specific conditions.
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.21...v0.13.22
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.20...v0.13.21
toResourceCollection support on paginators by @romalytvynenko in https://github.com/dedoc/scramble/pull/1142Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.19...v0.13.20
toResource and toResourceCollection methods support by @romalytvynenko in https://github.com/dedoc/scramble/pull/1138FormRequest (e.g. #[*Parameter], #[SchemaName]) by @romalytvynenko in https://github.com/dedoc/scramble/pull/1141Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.18...v0.13.19
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.17...v0.13.18
when (from Conditional trait) is supported by @romalytvynenko in https://github.com/dedoc/scramble/pull/1113required rule on arrays not setting minItems: 1 by @dbrekelmans in https://github.com/dedoc/scramble/pull/1120Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.16...v0.13.17
paginate calls on models and query builders by @romalytvynenko in https://github.com/dedoc/scramble/pull/1109[@phpstan-self-out](https://github.com/phpstan-self-out) support and improve closure param inference from call-site context by @romalytvynenko in https://github.com/dedoc/scramble/pull/1111Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.15...v0.13.16
[@hidden](https://github.com/hidden) annotation and attribute by @romalytvynenko in https://github.com/dedoc/scramble/pull/1106null in enum property by @romalytvynenko in https://github.com/dedoc/scramble/pull/1107#[QueryParameter] with nested brackets (and other parameters attributes) generates incorrect parameter name by @romalytvynenko in https://github.com/dedoc/scramble/pull/1108Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.14...v0.13.15
'class' by @romalytvynenko in https://github.com/dedoc/scramble/pull/1090datetime:Y-m-d cast being documented as date-time format (now correctly documented as date) by @romalytvynenko in https://github.com/dedoc/scramble/pull/1091[@deprecated](https://github.com/deprecated) annotation support on arrays by @romalytvynenko in https://github.com/dedoc/scramble/pull/1093Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.13...v0.13.14
flatten_deep_query_parameters by @romalytvynenko in https://github.com/dedoc/scramble/pull/1084[@deprecated](https://github.com/deprecated) in API resources by @devfrey in https://github.com/dedoc/scramble/pull/1080null value for ui.title in docs view. by @IsmailBourbie in https://github.com/dedoc/scramble/pull/1087Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.12...v0.13.13
NotFoundHttpException being not documented anymore by @romalytvynenko in https://github.com/dedoc/scramble/pull/1074Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.11...v0.13.12
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.10...v0.13.11
regex validation rule support by @romalytvynenko in https://github.com/dedoc/scramble/pull/1050exists rule on UUID columns by @romalytvynenko in https://github.com/dedoc/scramble/pull/1049Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.9...v0.13.10
[@deprecated](https://github.com/deprecated) annotation on fields by @romalytvynenko in https://github.com/dedoc/scramble/pull/1048Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.8...v0.13.9
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.7...v0.13.8
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.6...v0.13.7
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.5...v0.13.6
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.4...v0.13.5
Arrayable interface by @klAvAx in https://github.com/dedoc/scramble/pull/1012Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.3...v0.13.4
While unlikely this is going to affect you, RulesToParameter class has been removed. It was the internal not documented class, so it wasn't intended to be used on its own. Due to the low possibility of this affecting someone, I'm not tagging a new 0.14.x release.
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.2...v0.13.3
isInstanceOf could've returned null for template type.[@mixin](https://github.com/mixin) of the class alias is used on the same class 😵💫Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.1...v0.13.2
Full Changelog: https://github.com/dedoc/scramble/compare/v0.13.0...v0.13.1
While this release has no breaking changes itself, the resulting OpenAPI document may be more accurate for your specific application, and hence may be considered as the one containing breaking changes. Due to this, I've decided to mark this release as 0.13.x. It means that you'll need to explicitly update the version in composer.json if you rely on ^0.12.0 or earlier versions.
Starting from Laravel 11.x (and especially from 12.x), Laravel comes with great and accurate PHPDoc annotations. With Scramble supporting these types, you'll enjoy focusing more on the app codebase rather than writing type annotations.
use App\Models\Appointment;
Route::get('/appointments', function (Request $request) {
$items = Appointment::query()
->where('status', $request->string('status'))
->get();
return $items;
});
In this case, Scramble can infer the type of $items: it is a collection of appointments, specifically: Illuminate\Database\Eloquent\Collection<int, App\Models\Appointment>!
This gives nice documentation just by analyzing the source, without any additional annotations.
Previously, Scramble only supported controller-based routes. Now, the routes defined using closures also get their share of love and are documented automatically.
Closure-based routes support all the attributes (for manual parameters, headers, responses, etc.) that are supported by controller-based methods.
Request@user method support for better post-installation experience by @romalytvynenko in https://github.com/dedoc/scramble/pull/1001Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.36...v0.13.0
date_format rule documentationFull Changelog: https://github.com/dedoc/scramble/compare/v0.12.35...v0.12.36
MissingValue in combination with Carbon/ CarbonImmutable when transforming by @chrisvanlier2005 in https://github.com/dedoc/scramble/pull/960paginationInformation resource's method support by @romalytvynenko in https://github.com/dedoc/scramble/pull/962[@stoplight](https://github.com/stoplight)/elements to 8.4.2 to avoid tags duplication by @romalytvynenko in https://github.com/dedoc/scramble/pull/964unset support and provide $paginated type to paginationInformation by @romalytvynenko in https://github.com/dedoc/scramble/pull/968Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.34...v0.12.35
Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.33...v0.12.34
Rule::when support by @romalytvynenko in https://github.com/dedoc/scramble/pull/951Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.32...v0.12.33
operationId support via Endpoint attribute by @jrdnrc in https://github.com/dedoc/scramble/pull/941throw statements showing as unknown "string" type in match expressions by @finalgamer in https://github.com/dedoc/scramble/pull/944Rule::requiredIf treated as required by @apasquini95 in https://github.com/dedoc/scramble/pull/939Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.31...v0.12.32
Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.30...v0.12.31
system color theme by @macbookandrew in https://github.com/dedoc/scramble/pull/923Full Changelog: https://github.com/dedoc/scramble/compare/v0.12.29...v0.12.30
How can I help you explore Laravel packages today?