{"id":16226130,"url":"https://github.com/romkor/ramda-validator","last_synced_at":"2025-04-08T03:44:32.035Z","repository":{"id":152791592,"uuid":"47114099","full_name":"romkor/ramda-validator","owner":"romkor","description":"!!! Abandoned !!!","archived":false,"fork":false,"pushed_at":"2015-12-16T12:41:39.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T02:53:01.709Z","etag":null,"topics":["ramda","ramdajs","validation"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/romkor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-30T11:27:08.000Z","updated_at":"2018-02-28T08:51:33.000Z","dependencies_parsed_at":"2023-04-16T03:45:08.555Z","dependency_job_id":null,"html_url":"https://github.com/romkor/ramda-validator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romkor%2Framda-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romkor%2Framda-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romkor%2Framda-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romkor%2Framda-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romkor","download_url":"https://codeload.github.com/romkor/ramda-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247773745,"owners_count":20993633,"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":["ramda","ramdajs","validation"],"created_at":"2024-10-10T12:48:06.594Z","updated_at":"2025-04-08T03:44:32.014Z","avatar_url":"https://github.com/romkor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ramda-validator\n[![Build Status](https://travis-ci.org/romkor/ramda-validator.svg?branch=master)](https://travis-ci.org/romkor/ramda-validator)\n\n## Usage\n\n```js\nvar validateModel = RV.validator([\n  // Allow only following fields / add error to all fields that are not in list.\t\t\n  RV.permitAll([\"id\", \"title\", \"description\"]),\n  RV.requireAll([\"id\", \"title\"]),\n  RV.ifThen(RV.required(\"description\"), RV.minLength(\"description\", 5))\n]);\nvar model = {\n  id: 42,\n  title: \"Lorem ipsum dolor sit amet\",\n  description: \"\",\n  categories: []\n};\nvar validationResult = validateModel(model);\n```\n\n## Todo\n\n* Add tests\n* Refactoring\n* Documentation\n* Examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromkor%2Framda-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromkor%2Framda-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromkor%2Framda-validator/lists"}