{"id":13879889,"url":"https://github.com/byroot/explicit-parameters","last_synced_at":"2025-05-05T23:08:18.553Z","repository":{"id":27692879,"uuid":"31179467","full_name":"byroot/explicit-parameters","owner":"byroot","description":"Explicit parameters validation and casting for Rails APIs.","archived":false,"fork":false,"pushed_at":"2022-03-04T11:17:23.000Z","size":20,"stargazers_count":19,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T00:31:38.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byroot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-22T20:40:36.000Z","updated_at":"2025-03-22T23:09:51.000Z","dependencies_parsed_at":"2022-09-01T00:12:26.396Z","dependency_job_id":null,"html_url":"https://github.com/byroot/explicit-parameters","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byroot%2Fexplicit-parameters","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byroot%2Fexplicit-parameters/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byroot%2Fexplicit-parameters/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byroot%2Fexplicit-parameters/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byroot","download_url":"https://codeload.github.com/byroot/explicit-parameters/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252289652,"owners_count":21724447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-06T08:02:37.863Z","updated_at":"2025-05-05T23:08:18.529Z","avatar_url":"https://github.com/byroot.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# ExplicitParameters\n\n[![Build Status](https://secure.travis-ci.org/byroot/explicit-parameters.png)](http://travis-ci.org/byroot/explicit-parameters)\n[![Gem Version](https://badge.fury.io/rb/explicit-parameters.png)](http://badge.fury.io/rb/explicit-parameters)\n\n\nExplicit parameters validation and casting for Rails APIs.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'explicit-parameters'\n```\n\nAnd then execute:\n\n    $ bundle\n\n## Usage\n\nExample:\n\n```ruby\nclass DummyController \u003c ApiController\n  params do\n    requires :search, String\n    accepts :limit, Integer, default: 30\n\n    validates :limit, :numericality: {greater_than: 0, less_than_or_equal_to: 100}\n  end\n  def index\n    Dummy.search(params.search).limit(params.limit)\n  end\nend\n```\n\n## TODO\n\n- Real README\n\n## Contributing\n\n1. Fork it ( https://github.com/byroot/explicit_parameters/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyroot%2Fexplicit-parameters","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyroot%2Fexplicit-parameters","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyroot%2Fexplicit-parameters/lists"}