X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7b08270526a34723f1bb9f68a1f0878838714b15..7d57fb8c28e13d63242e05f288e784273c8a2945:/config/initializers/config.rb?ds=sidebyside diff --git a/config/initializers/config.rb b/config/initializers/config.rb index 3d8236161..caaab0c2f 100644 --- a/config/initializers/config.rb +++ b/config/initializers/config.rb @@ -41,9 +41,13 @@ Config.setup do |config| # Validate presence and type of specific config values. Check https://github.com/dry-rb/dry-validation for details. # - # config.schema do - # required(:name).filled - # required(:age).maybe(:int?) - # required(:email).filled(format?: EMAIL_REGEX) - # end + config.schema do + required(:api_version).filled(:str?) + required(:max_request_area).filled(:number?) + required(:max_note_request_area).filled(:number?) + required(:tracepoints_per_page).filled(:int?) + required(:max_number_of_way_nodes).filled(:int?) + required(:api_timeout).filled(:int?) + required(:imagery_blacklist).maybe(:array?) + end end