|
3 | 3 | ## 2.2.0 |
4 | 4 |
|
5 | 5 | - Add ability to define multiple versions using one block. |
6 | | - - Added ability to mark certain attributes as optional when validating with `loose: true` and required otherwise. |
7 | | - - Added `index` attribute type that automatically generates a link list compatible with media_types-serialization. |
8 | | - - Added support for `collection` to automatically look up a previously defined schema when passing a view. |
| 6 | + - Add `index` attribute type that automatically generates a link list compatible with media_types-serialization. |
| 7 | + - Add support for `collection` to automatically look up a previously defined schema when passing a view. |
| 8 | + - Add ability to mark certain attributes as optional when validating with `loose: true` and required otherwise. |
9 | 9 |
|
10 | 10 | ## 2.1.1 |
11 | 11 |
|
|
24 | 24 |
|
25 | 25 | ## 2.0.0 |
26 | 26 |
|
27 | | -- Removed ability to set default suffix. All suffixes now default to `+json`. |
| 27 | +- Remove ability to set default suffix. All suffixes now default to `+json`. |
28 | 28 | - Suffixes are now set for a given view and version instead of as a block. |
29 | | -- Added `suffix :yoursuffix` command to override the default `:json` suffix. |
30 | | -- Removed defaults block. |
31 | | -- Removed registrations block. |
| 29 | +- Add `suffix :yoursuffix` command to override the default `:json` suffix. |
| 30 | +- Remove defaults block. |
| 31 | +- Remove registrations block. |
32 | 32 |
|
33 | 33 | ## 1.0.0 |
34 | 34 |
|
35 | | -- Added the ability to do inline tests when defining validations using `assert_pass '<json>'` and `assert_fail '<json>'`. |
| 35 | +- Add the ability to do inline tests when defining validations using `assert_pass '<json>'` and `assert_fail '<json>'`. |
36 | 36 | - `media_type` has been replaced with `use_name`. |
37 | 37 | - It is no longer possible to set a default version. Please use `version <x> do` instead. |
38 | 38 | - You no longer need to specify a custom format string. If you set an organisation with `def self.organisation` or set a module wide organisation with `MediaTypes::set_organisation <module>, '<organisation>'` the library will generate identifiers for you. |
39 | 39 | - `self.base_format` has been replaced by `identifier_format do |type:, view:, version:, suffix:|`. |
40 | | -- Added the `empty` validation to mark an empty object as valid. |
41 | | -- Added the `identifier` function to get the [Media Type Identifier](https://en.wikipedia.org/wiki/Media_type) for the validator. |
42 | | -- Added `version(x)` and `view(x)` functions. |
43 | | -- Added an `available_validations` functions that returns all defined validations. |
44 | | -- Fixed an issue where validations could accidentally merge if defined with a bad `base_format`. |
45 | | -- Fixed an issue where undefined validations would accept an empty object. |
| 40 | +- Add the `empty` validation to mark an empty object as valid. |
| 41 | +- Add the `identifier` function to get the [Media Type Identifier](https://en.wikipedia.org/wiki/Media_type) for the validator. |
| 42 | +- Add `version(x)` and `view(x)` functions. |
| 43 | +- Add an `available_validations` functions that returns all defined validations. |
| 44 | +- Fix an issue where validations could accidentally merge if defined with a bad `base_format`. |
| 45 | +- Fix an issue where undefined validations would accept an empty object. |
46 | 46 |
|
47 | 47 | ## 0.6.2 |
48 | 48 |
|
|
0 commit comments