Merge branch 'fix/empty-params-openapi' into 'develop'
authorrinpatch <rinpatch@sdf.org>
Sat, 3 Oct 2020 12:35:49 +0000 (12:35 +0000)
committerrinpatch <rinpatch@sdf.org>
Sat, 3 Oct 2020 12:35:49 +0000 (12:35 +0000)
OpenAPI CastAndValidate: filter out empty params

Closes #2198

See merge request pleroma/pleroma!3047

1  2 
CHANGELOG.md

diff --combined CHANGELOG.md
index e02e843011fae4ca83dddaa1ebcfc9979cabe3c6,983ddd62859e6ae7c9710366118d9b76e5fdc25b..213467d6e7b961467f9d5dcf410df5d860bb98ea
@@@ -8,7 -8,6 +8,7 @@@ The format is based on [Keep a Changelo
  ### Added
  - Mix tasks for controlling user account confirmation status in bulk (`mix pleroma.user confirm_all` and `mix pleroma.user unconfirm_all`)
  - Mix task for sending confirmation emails to all unconfirmed users (`mix pleroma.email send_confirmation_mails`)
 +- Mix task option for force-unfollowing relays
  
  ### Changed
  
  - The `discoverable` field in the `User` struct will now add a NOINDEX metatag to profile pages when false.
  - Users with the `discoverable` field set to false will not show up in searches.
  - Minimum lifetime for ephmeral activities changed to 10 minutes and made configurable (`:min_lifetime` option).
 +- Introduced optional dependencies on `ffmpeg`, `ImageMagick`, `exiftool` software packages. Please refer to `docs/installation/optional/media_graphics_packages.md`.
  
  ### Added
 -- Media preview proxy (requires media proxy be enabled; see `:media_preview_proxy` config for more details).
 +- Media preview proxy (requires `ffmpeg` and `ImageMagick` to be installed and media proxy to be enabled; see `:media_preview_proxy` config for more details).
  - Pleroma API: Importing the mutes users from CSV files.
  - Experimental websocket-based federation between Pleroma instances.
  - Admin API: Importing emoji from a zip file
@@@ -39,6 -37,11 +39,11 @@@ switched to a new configuration mechani
  - Add documented-but-missing chat pagination.
  - Allow sending out emails again.
  
+ ## Unreleased (Patch)
+ ### Changed
+ - API: Empty parameter values for integer parameters are now ignored in non-strict validaton mode.
  ## [2.1.2] - 2020-09-17
  
  ### Security