{"id":26874187,"url":"https://github.com/uzrnem/verify","last_synced_at":"2026-05-01T13:33:19.330Z","repository":{"id":54846480,"uuid":"332407130","full_name":"uzrnem/verify","owner":"uzrnem","description":"Java library for validating Object/Data, available on Maven and other servers.","archived":false,"fork":false,"pushed_at":"2021-01-31T09:50:59.000Z","size":73,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-16T00:08:14.170Z","etag":null,"topics":["java","maven","request-validation","sonatype-nexus","validator"],"latest_commit_sha":null,"homepage":"","language":"Java","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/uzrnem.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":"2021-01-24T09:10:29.000Z","updated_at":"2021-02-06T18:55:15.000Z","dependencies_parsed_at":"2022-08-14T04:40:21.732Z","dependency_job_id":null,"html_url":"https://github.com/uzrnem/verify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uzrnem/verify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzrnem%2Fverify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzrnem%2Fverify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzrnem%2Fverify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzrnem%2Fverify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uzrnem","download_url":"https://codeload.github.com/uzrnem/verify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uzrnem%2Fverify/sbom","scorecard":{"id":913868,"data":{"date":"2025-08-11","repo":{"name":"github.com/uzrnem/verify","commit":"f5da3f682373c32db32d814af462aa0e74ba5040"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: .mvn/wrapper/maven-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T20:15:25.093Z","repository_id":54846480,"created_at":"2025-08-24T20:15:25.093Z","updated_at":"2025-08-24T20:15:25.093Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32499683,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java","maven","request-validation","sonatype-nexus","validator"],"created_at":"2025-03-31T09:34:10.252Z","updated_at":"2026-05-01T13:33:19.260Z","avatar_url":"https://github.com/uzrnem.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# validator\nAdd Dependency to your maven project\nhttps://search.maven.org/artifact/com.github.uzrnem/verify/0.0.2/jar\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.uzrnem\u003c/groupId\u003e\n  \u003cartifactId\u003everify\u003c/artifactId\u003e\n  \u003cversion\u003e0.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nBefore starting please go through Test cases provided.\n\nYou can create your Validator\u003cT\u003e with POJO\n```\nclass Model {\n\n  private String firstName;\n  private String lastName;\n  private Integer age;\n  private Integer Salary;\n\n  //Assume all getter setter methods here\n\n  public static Validator\u003cModel\u003e validator = Validator.stream(Model.class)\n    .add(Model::getFirstName, Validator.REQUIRED | Validator.UPPERCASE, \"First name is required and to be uppercase\")\n    .add(Model::getLastName, Validator.LOWERCASE, \"Last name required to be lowercase\")\n    .min(Model::getFirstName, 5, \"First name is invalid\")\n    .max(Model::getLastName, 10, \"Last name is invalid\")\n    .max(Model::getAge, 55, \"Employee age limit is reached\")\n    .min(Model::getSalary, 10000, \"Salary can't be less than 10000\")\n    .in(Model::getLastName, Arrays.asList(\"Larry\", \"Moe\", \"curly\"), \"Last name is not expected\")\n    .notIn(Model::getFirstName, Arrays.asList(\"Thonas\", \"Loki\"), \"You are villan\")\n    .check(Model::getLastName, l -\u003e l.startsWith(\"c\"), \"Last name is not C.lassy\");\n}\n```\n#Lets talk about functions by Validator\n1. add(): you can add here checks(ALPHABETIC, ALPHANUMERIC, NUMERIC, UPPERCASE, LOWERCASE, REQUIRED, EMAIL) with `or` operator\n2. min(): you can check min for String and Integer values\n3. max(): you can check max for String and Integer values\n4. in(): you need to provide list and check given value is provided in list.\n4. notIn(): you need to provide list and check given value is provided not in list.\n5. check(): you can provide your own Predicate function and say validate using this.\n```\nModel m = new Model();\nm.setFirstName(\"Greta\");\nm.setLastName(\"Thunderburg\");\nm.setAge(60);\nm.setSalary(9000);\n\nModel.validator.test(m) //Returns True or False\n\nModel.validator.getErrors() //Returns Errors List\n```\n\nUse Check class for other validations\n```\nString empty = \"\";\nString lowerCase = \"lowercase\";\nString upperCase = \"UPPERCASE\";\nString mixedCase = \"Mixed\";\n\nassertTrue(Check.isNull(null));\nassertTrue(Check.isEmpty(empty));\nassertTrue(Check.isUppercase(upperCase));\nassertTrue(Check.isLowercase(lowerCase));\nassertTrue(Check.isLengthLessThan(mixedCase, 6));\nassertTrue(Check.isLengthGreaterThan(mixedCase, 4));\nassertTrue(Check.isLessThan(5, 6));\nassertTrue(Check.isGreaterThan(5, 4));\n\nassertTrue(Check.isEmail(\"uzrnem@gmail.com\"));\nassertFalse(Check.isEmail(\"uzr..nem@gmail.com\"));\n\nassertTrue(Check.isAlphabetic(\"bhagyeshsunilpatel\"));\nassertFalse(Check.isAlphabetic(\"bhagyesh sunil patel\"));\n\nassertTrue(Check.isAlphaNumeric(\"bhagyesh94\"));\nassertFalse(Check.isAlphaNumeric(\"bhagyesh.patel\"));\n\nassertTrue(Check.isNumeric(\"2e10\"));\nassertTrue(Check.isNumeric(\"2010\"));\nassertFalse(Check.isNumeric(\"10e5.4\"));\nassertFalse(Check.isNumeric(\"2,10\"));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzrnem%2Fverify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuzrnem%2Fverify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuzrnem%2Fverify/lists"}