Releases: dedoc/scramble
Releases · dedoc/scramble
v0.8.5
What's Changed
Added
- Add
whenCounted
support in API resources by @vovarudomanenko in #236 - Added support for
min
andmax
rules on arrays by @Carnicero90 in #244
Fixes
- Fixed 'Try it' not working with Laravel Sanctum by @vovarudomanenko in #243
- Fixed error when trying to access tag data by @rolexam in #270
New Contributors
- @vovarudomanenko made their first contribution in #236
- @Carnicero90 made their first contribution in #244
- @rolexam made their first contribution in #270
Full Changelog: v0.8.4...v0.8.5
v0.8.4
What's Changed
Added
- Allow Spotlight to be customized (
Try It
disabled and logo) by @kichetof in #177 - Added support of
getRouteKeyName
on a model by @romalytvynenko in #208 - Added
image
andfile
validation rules support, request media type customization support by @WildEgo, @AlexSabur, @romalytvynenko in #232
Fixes
- Fixed bug when
@response
wasn't the most prioritized by @romalytvynenko in #205 - Fixed gibberish
operationId
when routes without names are cached by @romalytvynenko in #207
New Contributors
Full Changelog: v0.8.3...v0.8.4
v0.8.3
What's Changed
- Fixed error when analyzing files with CR lines separator by @romalytvynenko in #175
- Added support of models to
LengthAwarePaginator
annotation (LengthAwarePaginator<Post>
) by @romalytvynenko in #175
Full Changelog: v0.8.2...v0.8.3
v0.8.2
What's Changed
- Fixed
Scope@getType
returning unexpectednull
by @romalytvynenko in #167
Full Changelog: v0.8.1...v0.8.2
v0.8.1
What's Changed
- Fixed exception when some of timestamps columns were
null
by @romalytvynenko in #165
Full Changelog: v0.8.0...v0.8.1
v0.8.0
What's Changed
🚨 Breaking changes 🚨
- Minimum PHP version is changed from 7.4 to 8.1. 96.4% of all the installs are coming from 8.1 and upper, so it's time to make this bump.
- Extensions API changes - internal type inference system got a huge rework, so I needed to update the extensions API to reflect that.
Added
- Lazy type inference for more accurate return types analysis by @romalytvynenko in #138
- Added support of UUID model keys by @romalytvynenko in #122
- Added
confirmed
rule support by @romalytvynenko in #124 - Add
operationId
support by @romalytvynenko and @HelgeSverre in #153
Changes
- Manually documented string unions become enum of a string in docs by @romalytvynenko in #137
- Sort operations and schemas alphabetically by @romalytvynenko in #152
Fixes
- Fixed spread operator not being properly analyzed when inferring a type for an array by @romalytvynenko in #123
Full Changelog: v0.7.2...v0.8.0
v0.7.2
What's Changed
- Added Laravel 10 support by @AlexSabur in #109
New Contributors
- @AlexSabur made their first contribution in #109
Full Changelog: v0.7.1...v0.7.2
v0.7.1
What's Changed
- Specify how env auth works by @tontonsb in #101
- Access to docs in
local
env only by default and usingviewApiDocs
gate in other environments by @tontonsb in #102 - Added articles by @timschwartz in #105
- Fixed error when
declare(strict_types=1);
was used by @romalytvynenko in #107
New Contributors
- @tontonsb made their first contribution in #101
- @timschwartz made their first contribution in #105
Full Changelog: v0.7.0...v0.7.1
v0.7.0
What's Changed
- Added server variables support, added multiple servers support by @romalytvynenko in #76
- Added an ability to document request body params (in validation rules): allowed overriding resulting type, adding description, and example by @romalytvynenko in #88
- Added abort helpers support (
abort
,abort_if
,abort_unless
) by @romalytvynenko in #94 - Improved support of other
JsonResource
s in the resource class, added support of 3rd argument inwhen
andwhenLoaded
by @romalytvynenko in #87 - Fixed an issue when references couldn't be marked as
null
able by @romalytvynenko in #74 - Fixed fatal error when an array item was manually documented without
@var
by @romalytvynenko in #75 - Fixed exception caused by incorrect class const fetch on variables and other expressions handling by @romalytvynenko in #86
- Improve array validation rule and falsy examples support by @romalytvynenko in #89
- Fixed an access to
exceptions
property on possibly nullable object by @romalytvynenko in #95 - Fix missing
phpDoc
attributes on resolved type attached byPhpDocHandler
when they're attached to pending type by @romalytvynenko in #96 - Fixed an exception when
doctrine/dbal
is not installed by @romalytvynenko in #99
Full Changelog: v0.6.0...v0.7.0
v0.6.0
What's Changed
- Added support of responsable exceptions as responses (403, 422, 404) by @romalytvynenko in #65
- Added resource collections support by @romalytvynenko in #64
- Added support for
true
andfalse
expressions by @romalytvynenko in #58 - Added literals support to PHPDoc types by @romalytvynenko in #59
- Fixed an error that happened when combining responses with empty body and the same status by @romalytvynenko in #60
- Fixed flawed path param aliasing to the var name by @romalytvynenko in #63
Full Changelog: v0.5.0...v0.6.0