README.md in request_handler-0.13.0 vs README.md in request_handler-0.14.0

- old
+ new

@@ -40,10 +40,13 @@ Please note that pagination only considers options that are configured on the server (at least an empty configuration block int the page block), other options sent by the client are ignored and will cause a warning. +Generic query params can be added by using the `query` block. This may be useful +if parameters should be validated which cannot be assigned to other predefined option blocks. + ```ruby require "dry-validation" require "request_handler" class DemoHandler < RequestHandler::Base options do @@ -74,9 +77,17 @@ end ) additional_url_filter %i(user_id id) options(->(_handler, _request) { { foo: "bar" } }) # options({foo: "bar"}) # also works for hash options instead of procs + end + + query do + schema( + Dry::Validation.Form do + optional(:name).filled(:str?) + end + ) end body do schema( Dry::Validation.JSON do