Skip to content

Latest commit

 

History

History
158 lines (108 loc) · 4.62 KB

CHANGELOG.md

File metadata and controls

158 lines (108 loc) · 4.62 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

## [3.0.0] - 2023-02-07

Added

  • JSONAPI data member validation

Changed

  • Update rubocop to 1.44

[2.3.0] - 2022-06-29

Changed

  • Explicitly pass kwargs to support ruby 3.0

[2.2.0] - 2022-02-25

Changed

  • The definition engine now makes use of the translated error messages to return more useful messages

[2.1.1] - 2021-06-14

Fixed

  • Change error object's source attribute from param to parameters to align with JSONAPI specification

[2.1.0] - 2020-04-01

Added

  • Headers validation

[2.0.0] - 2019-11-19

Changed

  • BREAKING: Required configuration of validation engine
  • BREAKING: Dynamic resource keys in config DSL are not supported anymore and have to be defined via the resource key

Added

  • Support for dry-* 1.x

Removed

  • BREAKING: Dry dependencies were removed and should manually be added
  • BREAKING: Support for config inheritance
  • BREAKING: Support for dry-* 0.x

[1.3.0] - 2019-05-21

Added

  • Serializable JSONAPI error objects out of validation failures
  • Configuration option to enable returning validation failures in errors method of exceptions

Changed

  • Format of error messages for external causes (bad requests)
  • Inheritance chain of error classes

[1.2.0] - 2019-04-15

Added

  • Apart from dry-validation, now definition or any other validation library can be used

1.1.0 - 2018-07-13

Changed

  • loosen dry-gems restrictions, now allow all version > 0.11

1.0.0 - 2018-07-03

Added

  • possibility to send NULL values in relationships

Fixed

  • fix nested schemas with symbolized keys

0.15.0 - 2018-06-20

Added

  • JsonParser for non-jsonapi documents in body an multipart files

Changed

  • changelog format (previous logs kept mostly the same)

0.14.0 - 2017-09-11

  • support generic query params

0.13.0 - 2017-07-28

  • sidecar resources for multipart requests can be labeled with required
  • remove support for sidepushing via included array in request body.

[0.12.0] - 2017-05-19

  • support for multipart-requests
  • update rubocop and fix danger check
  • drop support for ruby 2.1 (dry-types does not support it anymore either which makes supporting it here pointless)
  • adapt fieldset validation to allow all fields in addition to a specific enum
  • no need for 'required' field in fieldsets_parser anymore
  • throw different errors for each parser, all new errors inherit from ExternalArgumentError

[0.11.0] - 2017-03-17

  • parse included array from request body
  • body no longer accepts a default

[0.10.0] - 2017-02-16

  • raise an error if mandatory options are missing in the handler configuration
  • transform param keys to string before substitution
  • make gem compatible with ruby 2.1
  • add danger
  • raise an ExternalArgumentError if the body does not contain data

[0.9.1] - 2017-01-31

  • fix configure method

[0.9.0] - 2017-01-31

  • change nesting separator from _ to __ and use it consistently (also in sorting fields)
  • make separator configurable

[0.8.0] - 2017-01-10

  • rename gem (dry-request_handler --> request_handler)
  • remove env based config for logger

[0.7.1] - 2017-01-04

  • fix usage of struct to be unambiguous if dry-struct is used

[0.7.0] - 2017-01-03

  • fix error message building
  • sort_params returns an array of SortOption structs now
  • general headers method for all headers (removes authorization_headers method)
  • sort and include options will use only the values from the request if they exist and the defaults if there are no values set in the request

[0.6.0] - 2016-12-14

  • support for fieldsets

[0.5.0] - 2016-11-29

  • default_size is now mandatory
  • default_size and max_size now must be Integers

[0.4.0] - 2016-11-16

fix error messages to also work with nested error messages

[0.3.0] - 2016-11-08

sort_params returns an array of dtos now DataTransferObject.new(field: "test", directions: :asc)

[0.2.1] - 2016-11-02

version bump for publishing