Scramble 0.11.0 is here! Laravel Data support, schema enforcement and more
Learn more
Releases
Keep up with regular Scramble releases.
Latest versions:
Scramble: v0.11.19
Scramble PRO: v0.6.10
October 2024
Oct 15, 2024
v0.6.10 PRO
What’s Changed
- Documenting when request body is required if some property is required
Oct 15, 2024
Oct 14, 2024
v0.11.18
What’s Changed
- Ability to use paginators as a part of other schemas by @romalytvynenko in #574
- Add file upload in OAS 3.1 format description support by @yvoitenko in #569
- Fixed incorrect parsing of inline JSON resource model annotating comments by @romalytvynenko in #575
- Added
immutable_date
casts support by @romalytvynenko in #576 - Fix failing when fetching constants using variables by @romalytvynenko in #577
New Contributors
- @yvoitenko made their first contribution in #569
Oct 11, 2024
v0.6.9 PRO
What’s Changed
- Added support for documenting included or excluded
Lazy
properties of Laravel Data objects. Now when you useinclude
/exclude
methods on Laravel Data object, Scramble will correctly get the resulting type. CallingdefaultIncluded
method onLazy
property is also now correctly documented. - When creating Laravel Data objects using
from
method and passing a model, Scramble will now correctly infer the type fromfromModel
method.
Oct 11, 2024
Oct 3, 2024
v0.6.8 PRO
What’s changed
- Fixed annotated collections won’t documented properly when using the Data object as an input.
Oct 1, 2024
v0.6.7 PRO
What’s changed
int
property types are now correctly documented asinteger
schema
September 2024
Sep 25, 2024
v0.6.6 PRO
What’s changed
- Laravel Data: improved
@example
support when specifying numeric examples for string properties.
Sep 24, 2024
v0.11.16
What’s Changed
- Correctly handle a case when both form request and inline validation used by @romalytvynenko in #552
Sep 22, 2024
v0.6.5 PRO
What’s changed
- Fixed MapInputName issue: previously defining it would affect schema properties names when used as a response: this should not happen.
- Bump Scramble dependency to
0.11.15
Sep 22, 2024
v0.11.15
What’s Changed
- Using
decodeURIComponent
instead ofdecodeURI
to better support Sanctum CSRF by @ritenn in #548 - Added @default support to JSON API resources by @romalytvynenko in #549
- Avoid documenting empty request body by @romalytvynenko in #550
- Fixed incorrect data wrap key when using
AnonymousResourceCollection
and redefining it in collected resource by @axelrindle in #517
New Contributors
Sep 16, 2024
v0.6.4 PRO
What’s changed
Scramble was bumped to ^0.11.14
.
This fixes the issue when Query Builder used in a controller’s method after a method where it was used with a different set of constraints, the constraints was bleeding into other method’s documentation.
Sep 16, 2024
Sep 6, 2024
v0.11.13
What’s Changed
- Fixed Scramble mutating return type if it has templates in it by @romalytvynenko in #524
Sep 4, 2024
v0.11.12
What’s Changed
- Validation parsing: ignore required on sometimes rule by @lakuapik in #492
- Add
parent::toArray
support for JSON API resources by @romalytvynenko in #506 - Add
withResponse
support for JSON API resources by @romalytvynenko in #514 - Fixed return type inference from models when in JSON API resource context by @romalytvynenko in #516
New Contributors
- @lakuapik made their first contribution in #492
August 2024
Aug 16, 2024
Aug 9, 2024
Aug 7, 2024
v0.6.3 PRO
What’s Changed
- Fixed an issue when it wasn’t possible to describe the array item’s shape using validation rules
- Added proper handling of union types when used as property type hint by @romalytvynenko in #14
July 2024
Jul 31, 2024
v0.6.2 PRO
What’s changed
- Fixed an error when retrieving property on a model that cannot be instantiated
Jul 26, 2024
v0.6.1 PRO
What’s Changed
- Fix the ability to inject query builder, and potentially faulty index bag