Skip to content

Tags: Wilt/api-tools-content-validation

Tags

1.9.0

Toggle 1.9.0's commit message

Verified

This tag was signed with the committer’s verified signature.
laminas-bot Laminas Bot
### Release Notes for [1.9.0](https://github.com/laminas-api-tools/ap… …i-tools-content-validation/milestone/1) ### Added - This release adds support for PHP 8.0. ### Removed - This release removes support for PHP versions prior to 7.3. ### 1.9.0 - Total issues resolved: **1** - Total pull requests resolved: **3** - Total contributors: **4** #### Enhancement - [17: Provide Psalm integration](laminas-api-tools#17) thanks to @weierophinney and @boesing - [15: Switch to GHA CI workflow](laminas-api-tools#15) thanks to @internalsystemerror - [13: PHP 8.0 support](laminas-api-tools#13) thanks to @eimkua1

1.8.0

Toggle 1.8.0's commit message
api-tools-content-validation 1.8.0 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.8.0 (commit 565c3b9f745aba330a5e90c4287a8b995be11823 in this repo) Added ----- - [zfcampus/zf-content-validation#106](zfcampus/zf-content-validation#106) adds support for PHP 7.3. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - [zfcampus/zf-content-validation#106](zfcampus/zf-content-validation#106) removes support for laminas-stdlib v2 releases. Fixed ----- - Nothing.

1.7.1

Toggle 1.7.1's commit message
api-tools-content-validation 1.7.1 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.7.1 (commit 3ecd6de67530134580da233c26237e22e80e441a in this repo) Added ----- - Nothing. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - [zfcampus/zf-content-validation#105](zfcampus/zf-content-validation#105) fixes default behaviour when the configuration flag `remove_empty_data` is not set; in that scenario, data will not change as described in the documentation. This fixes a BC break introduced in version 1.7.0.

1.7.0

Toggle 1.7.0's commit message
api-tools-content-validation 1.7.0 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.7.0 (commit aaa7c1a0955ddccc46b14240b932f13af04ae182 in this repo) Added ----- - [zfcampus/zf-content-validation#102](zfcampus/zf-content-validation#102) adds the configuration flag `remove_empty_data`. If set and boolean `true`, it causes removal of empty key/value pairs from filtered input data. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - Nothing.

1.6.1

Toggle 1.6.1's commit message
api-tools-content-validation 1.6.1 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.6.1 (commit 39ff116934280916ae478e5818f6930bda5aedb9 in this repo) Added ----- - Nothing. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - [zfcampus/zf-content-validation#99](zfcampus/zf-content-validation#99) fixes how the `ContentValidationListener` chooses an input filter on `DELETE` requests. Starting in 1.6.0, it erroneously would fall back to the default input filter if no `DELETE` or `DELETE_COLLECTION` input filter was found. However, this was a backwards incompatible change from previous versions, which would not apply the default input filter for `DELETE` requests. As such, a new check was added to provide the previous behavior in such situations.

1.6.0

Toggle 1.6.0's commit message
api-tools-content-validation 1.6.0 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.6.0 (commit 6c9342133b6a80a3686528806b7a790d293330b9 in this repo) Added ----- - [zfcampus/zf-content-validation#98](zfcampus/zf-content-validation#98) adds support for specifying controller-specific input filters for `DELETE` requests, using the keys `DELETE` and `DELETE_COLLECTION`. The input filter associated with the key will be applied to the request body. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - Nothing.

1.5.0

Toggle 1.5.0's commit message
api-tools-content-validation 1.5.0 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.5.0 (commit a307c8e00ad1b563c70fa14d84a53e84feb8d24a in this repo) Added ----- - [zfcampus/zf-content-validation#96](zfcampus/zf-content-validation#96) adds the ability to specify different input filters for _collections_ (versus entities). These may be indicated using `<METHOD>_COLLECTION` within your resource input filter configuration. Changed ------- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - Nothing.

1.4.0

Toggle 1.4.0's commit message
api-tools-content-validation 1.4.0 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.4.0 (commit 36edabd906f0f5efcc9ff6c168ae23e0f23518d8 in this repo) Added ----- - [zfcampus/zf-content-validation#95](zfcampus/zf-content-validation#95) adds support for PHP 7.1 and 7.2. Changed ------- - [zfcampus/zf-content-validation#93](zfcampus/zf-content-validation#93) modifies `ContentValidationListener::onRoute()` to set the event parameter `Laminas\ApiTools\ContentValidation\ParameterData` with the data it has aggregated prior to emitting the event `ContentValidationListener::EVENT_BEFORE_VALIDATE`. It also now pulls that parameter immediately prior to validating data, merging its value with the original data aggregated, and using the result when validating. This feature allows you to manipulate the data being validated prior to validation; one use case is to inject route matches into the data set to validate. Deprecated ---------- - Nothing. Removed ------- - [zfcampus/zf-content-validation#95](zfcampus/zf-content-validation#95) removes support for HHVM. Fixed ----- - Nothing.

1.3.6

Toggle 1.3.6's commit message
api-tools-content-validation 1.3.6 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.3.6 (commit d79240164e1b9d9992baeed81eda11c3faae70e5 in this repo) Added ----- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - [zfcampus/zf-content-validation#88](zfcampus/zf-content-validation#88) fixes an issue when handling PATCH requests in JSON formats that include a blank field name. Prior to the patch, these would raise a 400 error with a stack trace; with the fix, we now issue a 400 error with the message 'Unrecognized field ""'.

1.3.5

Toggle 1.3.5's commit message
api-tools-content-validation 1.3.5 Based on https://github.com/zfcampus/zf-content-validation/releases/tag/1.3.5 (commit c54e2501d62ee08dc93bc2a325136f4ac90c1c39 in this repo) Added ----- - Nothing. Deprecated ---------- - Nothing. Removed ------- - Nothing. Fixed ----- - [zfcampus/zf-content-validation#83](zfcampus/zf-content-validation#83) fixes how input filters are processed when performing GET collections to REST endpoints. This ability was introduce in 1.3.0, but failed to take into account that query string arguments cannot properly represent multiple entities, which led to any input filter for a `Laminas\ApiTools\Rest\Resource::fetchAll()` operation to be invalid. The change introduced treats such input filters such that they do not operate as a `CollectionInputFilter`; as such, they should only be used to retrieve values that will be used to sort or filter the collection returned. - [zfcampus/zf-content-validation#84](zfcampus/zf-content-validation#84) fixes how unknown fields are pulled from `CollectionInputFilter` instances when reporting their presence for Problem Details. Previously, it would report only the index of the collection set, and not the values from each; with this release, it now reports the which sets had unknown values, along with the unexpected values detected.