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
v0.11.19

What’s Changed

  • Added proper mixed type support by @romalytvynenko in #579
  • Added required field support to request body as well as automatically documenting it when some fields in schema required by @romalytvynenko in #580
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 use include/exclude methods on Laravel Data object, Scramble will correctly get the resulting type. Calling defaultIncluded method on Lazy 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 from fromModel method.
Oct 11, 2024
v0.11.17

What’s Changed

  • Add support for all pagination classes by @romalytvynenko in #565
  • Fix the extensions ordering so users extensions’ result is not overwritten by @romalytvynenko in #570
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 as integer 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 of decodeURI 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

  • @ritenn made their first contribution in #548
  • @axelrindle made their first contribution in #517
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
v0.11.14

What’s Changed

  • Fixes possible undefined array index 0 due to array_filter() by @kburton-dev in #530
  • Fixed accidentally mutating types when working with types by @romalytvynenko in #546
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
v0.11.11

What’s Changed

  • Fix anyOf being output as an object if some response type gets filtered out by @dmitrijs in #486
  • Lock Stoplight Elements to 8.3.4 to fix styles of request body by @romalytvynenko in #487

New Contributors

  • @dmitrijs made their first contribution in #486
Aug 9, 2024
v0.11.10

What’s Changed

  • Match namespace|use only on begining of line by @gjm in #477

New Contributors

  • @gjm made their first contribution in #477
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
Scramble PRO
Comprehensive API documentation generation for Spatie’s Laravel Data and Laravel Query Builder.