Code block style
$ gem install media_types-validation
Line length
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can
Line length
limitations of `JSON` apply. This step is necessary in order to make sure `rails` types and others are first correctly
Code block style
$ bundle
Line length
Add controller time validation for [media types](https://github.com/SleeplessByte/media_types-ruby) and react accordingly.
Line length
By default, this method only outputs to `stderr` when something is wrong; see configuration below if you want to assign
Line length
- [`MediaTypes::Serialization`](https://github.com/XPBytes/media_types-serialization): :cyclone: Add media types supported serialization using your favourite serializer
Line length
- [`MediaTypes::Deserialization`](https://github.com/XPBytes/media_types-deserialization): :cyclone: Add media types supported deserialization using your favourite parser, and media type validation.
Dollar signs used before commands without showing output
$ bundle
Line length
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the
Line length
version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version,
Trailing spaces
actions. This does _not_ validate only `JSON` output, but stringifies and then parses the body as `JSON`, so the
Trailing spaces
self.json_invalid_media_proc = proc do |media_type:, err:, body:|
Line length
This library will nog longer receive updates because it has been completely obsoleted by changes in the `media-types-serialization`. That library now takes care validating _all_ media-type based serialization responses and media-type based deserialization requests.
Line length
actions. This does _not_ validate only `JSON` output, but stringifies and then parses the body as `JSON`, so the
Line length
# -> serializer has .current_media_type which returns the MediaType::Constructable for the current state
Line length
- [`MediaTypes`](https://github.com/SleeplessByte/media-types-ruby): :gem: Library to create media type definitions, schemes and validations
Dollar signs used before commands without showing output
$ gem install media_types-validation
Line length
If you add the `MediaTypes::Validation` controller concern, `validate_json_with_media_type` becomes available during
There are no issues that match your filters.