All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project aims to adhere to Semantic Versioning.
- Set correct base URL protocol for Postman collection (knuckleswtf#114)
- Start database transaction much earlier and close it much later for ApiResource and Transformer strategies. Also set current route properly when resolving (knuckleswtf#104)
- Reverts 1.8.2 as it broke a few things (https://github.com/knuckleswtf/scribe/commit/5a2217513945bcb92ca26e463f7717c0efb99ac1)
- Regex in URL parameters shouldn't fuck the generated examples up anymore (https://github.com/knuckleswtf/scribe/commit/cf44fbbcd3643086859ba724f6e4d4315941b471)
- Printing form data body parameters no longer throws an error with nested arrays or objects (https://github.com/knuckleswtf/scribe/commit/33a58a18a8712d20ab90c06bf0bb087f6fb5869a)
- Lumen 8 support
- Fixed Laravel 8 + legacy factories support
- Fixed the OpenAPI route for
laravel
type docs (knuckleswtf#96)
Laravel 8 support
- New
description
field, where you can add a description of your API. This field will be used as theinfo.description
field in the Postman collection and OpenAPI spec, and as the first paragraph under the "Introduction" section on the generated webpage, before theintro_text
. (https://github.com/knuckleswtf/scribe/pull/90/commits/dc356f3f2b13732d567dbee88dad07fc0441f40e) - Postman collection
auth
information is now populated from Scribe's auth info. (https://github.com/knuckleswtf/scribe/pull/90/commits/33c00a7a0b915e9cbedccdb13d7cb4fcc3c76dc5)
- Postman collection schema version has been updated to 2.1.0. (https://github.com/knuckleswtf/scribe/pull/90/commits/cc7e4cbfae08999f555f7a105ab3c2993fdbb2c1)
- The
float
type is nownumber
: Previously,float
was used in the generated webpage as the default type for non-integer numbers, in alignment with PHP's type system. We've changed this tonumber
, to align with standards like OpenAPI and JSON types. You can still usefloat
in your annotations, but it will be rendered asnumber
. (https://github.com/knuckleswtf/scribe/pull/90/commits/66993d2d2c7a1a57806960dd4cc428068fb0f589) - [Internal] Reworked PostmanCollectionWriter API: The
PostmanCollectionWriter
has been reworked to be more in line with theOpenAPISpecWriter
. See the class for details.
- Deprecated
postman.auth
in favour ofpostman.overrides
: It didn't make sense to have two ways of setting Postman-specific auth information (postman.auth
andpostman.overrides
). Will be removed in v2. - Deprecated Postman-specific
postman.description
in favour ofdescription
. Will be removed in v2.
- Added
auth.placeholder
value so you can customise the placeholder API users will see in the example requests. (knuckleswtf#84) - Added
Generator::getRouteBeingProcessed()
method that returns the current route. (knuckleswtf#79)
- Response calls should now properly start/stop database transactions for all connections (knuckleswtf#89)
- Generated OpenAPI spec should now correctly use
"apiKey"
as the value oftype
in the security scheme (https://github.com/knuckleswtf/scribe/commit/896c2132ad3a2cfe89e0fba524aa489661823a11)
- Set proper defaults for Postman overrides, handle empt array examples in OAS (knuckleswtf#77)
- Support for resourceKey in Transformers(knuckleswtf#73)
- OpenAPI (Swagger) spec generation (knuckleswtf#75)
- Ability to override specific fields in generated Postman collection and OpenAPI spec (knuckleswtf#76)
- Provided option to bypass database drivers that don't support transactions (knuckleswtf#55, knuckleswtf#57)
- Include raw request URL in Postman collection (knuckleswtf#43)
- Support HEAD-only endpoints (knuckleswtf#54)
- Added ability to set postman base_url independently (knuckleswtf#31)
- Updated dependencies (knuckleswtf#26)
- Set badge colour for OPTIONS method too. (https://github.com/knuckleswtf/scribe/commit/ccce82cf75502493d776a4ec2378de9cda1659f3)
- Pinned erusev/parsedown dependency (from mnapoli/front-yaml) to ^1.7.4 to fix incompatibilities. (https://github.com/knuckleswtf/scribe/commit/fd623238852dca0e77aa88e86220830d71a460d4)
See what's new and the migration guide.