{"id":29322125,"url":"https://github.com/jirutka/validator-spring","last_synced_at":"2026-03-04T08:02:33.196Z","repository":{"id":7604594,"uuid":"8962377","full_name":"jirutka/validator-spring","owner":"jirutka","description":"Bean Validator utilizing Spring Expression Language (SpEL)","archived":false,"fork":false,"pushed_at":"2020-05-13T20:17:50.000Z","size":50,"stargazers_count":87,"open_issues_count":4,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2026-02-24T08:03:45.933Z","etag":null,"topics":["bean-validation","groovy","java","spring-el","springframework","validator"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"pillarjs/multiparty","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jirutka.png","metadata":{"files":{"readme":"README.adoc","changelog":"CHANGELOG.adoc","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-22T22:45:05.000Z","updated_at":"2026-02-12T13:52:30.000Z","dependencies_parsed_at":"2022-07-31T14:48:53.405Z","dependency_job_id":null,"html_url":"https://github.com/jirutka/validator-spring","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jirutka/validator-spring","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fvalidator-spring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fvalidator-spring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fvalidator-spring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fvalidator-spring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jirutka","download_url":"https://codeload.github.com/jirutka/validator-spring/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jirutka%2Fvalidator-spring/sbom","scorecard":{"id":521637,"data":{"date":"2025-08-11","repo":{"name":"github.com/jirutka/validator-spring","commit":"5f89f5e910feaa790f79eed272bb3d386131b048"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/30 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"Vulnerabilities","score":0,"reason":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-36p3-wjmg-h94x","Warn: Project is vulnerable to: GHSA-hh26-6xwr-ggv7","Warn: Project is vulnerable to: GHSA-4gc7-5j7h-4qph","Warn: Project is vulnerable to: GHSA-4wp7-92pw-q264","Warn: Project is vulnerable to: GHSA-g5mm-vmx4-3rg7","Warn: Project is vulnerable to: GHSA-4487-x383-qpph","Warn: Project is vulnerable to: GHSA-8crv-49fr-2h6j","Warn: Project is vulnerable to: GHSA-f866-m9mv-2xr3","Warn: Project is vulnerable to: GHSA-g8hw-794c-4j9g","Warn: Project is vulnerable to: GHSA-pgf9-h69p-pcgf","Warn: Project is vulnerable to: GHSA-rcpf-vj53-7h2m","Warn: Project is vulnerable to: GHSA-rhcg-rwhx-qj3j","Warn: Project is vulnerable to: GHSA-wv88-pf73-x22p","Warn: Project is vulnerable to: GHSA-558x-2xjg-6232","Warn: Project is vulnerable to: GHSA-564r-hj7v-mcr5","Warn: Project is vulnerable to: GHSA-9cmq-m9j5-mvww","Warn: Project is vulnerable to: GHSA-wxqc-pxw9-g2p8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T03:09:55.377Z","repository_id":7604594,"created_at":"2025-08-20T03:09:55.377Z","updated_at":"2025-08-20T03:09:55.377Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30075918,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bean-validation","groovy","java","spring-el","springframework","validator"],"created_at":"2025-07-07T14:01:08.227Z","updated_at":"2026-03-04T08:02:33.177Z","avatar_url":"https://github.com/jirutka.png","language":"Java","readme":"= Bean Validator utilizing SpEL\n:source-language: java\n:name: validator-spring\n:version: 1.1.0\n:artifact-id: {name}\n:group-id: cz.jirutka.validator\n:gh-name: jirutka/{name}\n:gh-branch: master\n:codacy-id: 3e4ab872dba9426ca74b49faccd8ad38\n\nifdef::env-github[]\nimage:https://travis-ci.org/{gh-name}.svg?branch={gh-branch}[Build Status, link=\"https://travis-ci.org/{gh-name}\"]\nimage:https://coveralls.io/repos/github/{gh-name}/badge.svg?branch={gh-branch}[Coverage Status, link=\"https://coveralls.io/github/{gh-name}\"]\nimage:https://api.codacy.com/project/badge/grade/{codacy-id}[Code quality, link=\"https://www.codacy.com/app/{gh-name}\"]\nimage:https://maven-badges.herokuapp.com/maven-central/{group-id}/{artifact-id}/badge.svg[Maven Central, link=\"https://maven-badges.herokuapp.com/maven-central/{group-id}/{artifact-id}\"]\nendif::env-github[]\n\nThis library provides http://beanvalidation.org/1.1/spec/[Bean Validation] (JSR 303/349) constraint that allows to use powerful http://static.springsource.org/spring/docs/current/spring-framework-reference/html/expressions.html[*Spring Expression Language*] (SpEL) for non-trivial validations.\nIt’s especially very useful for _cross-field validations_ that are very complicated with a plain Bean Validation.\n\n\n== Usage examples\n\n=== Cross-field validation\n\n[source]\n----\n@SpELAssert(value = \"hasRedirectUris()\", applyIf = \"grantTypes.contains('auth_code')\",\n            message = \"{validator.missing_redirect_uri}\")\npublic class ClientDTO {\n\n\tprivate Collection\u003cString\u003e grantTypes;\n\tprivate Collection\u003cString\u003e redirectUris;\n\n    public boolean hasRedirectUris() {\n        return !redirectUris.isEmpty();\n    }\n}\n----\n\n[source]\n----\n@SpELAssert(value = \"password.equals(passwordVerify)\",\n            applyIf = \"password || passwordVerify\",\n            message = \"{validator.passwords_not_same}\")\npublic class User {\n\n    private String password;\n    private String passwordVerify;\n}\n----\n\n=== Using helper functions\n\n[source]\n----\n@SpELAssert(value = \"#isEven(count) \u0026\u0026 count \u003e 42\", applyIf = \"enabled\",\n            helpers = Helpers.class)\npublic class Sample {\n\n    private int count;\n    private boolean enabled;\n}\n----\n\n[source]\n----\npublic class Sample {\n\n    @SpELAssert(value = \"#isEven(#this) \u0026\u0026 #this \u003e 42\",\n                helpers = Helpers.class)\n    private int count;\n}\n----\n\n[source]\n----\npublic final class Helpers {\n\n    public static boolean isEven(int value) {\n        return value % 2 == 0;\n    }\n    public static boolean isOdd(int value) {\n        return value % 2 != 0;\n    }\n}\n----\n\n=== Using Spring beans\n\n[source]\n----\npublic class Sample {\n\n    @SpELAssert(\"@myService.calculate(#this) \u003e 42\")\n    private int value;\n}\n----\n\n[source]\n----\n// Configuration is needed to allow autowiring of dependencies in custom validators.\n@Configuration\npublic class ValidatorConfig {\n\n    @Bean\n    public LocalValidatorFactoryBean validatorFactoryBean() {\n        return new LocalValidatorFactoryBean();\n    }\n}\n----\n\n\n== Maven\n\nReleased versions are available in The Central Repository.\nJust add this artifact to your project:\n\n[source, xml, subs=\"verbatim, attributes\"]\n----\n\u003cdependency\u003e\n    \u003cgroupId\u003e{group-id}\u003c/groupId\u003e\n    \u003cartifactId\u003e{artifact-id}\u003c/artifactId\u003e\n    \u003cversion\u003e{version}\u003c/version\u003e\n\u003c/dependency\u003e\n----\n\nHowever if you want to use the last snapshot version, you have to add the JFrog OSS repository:\n\n[source,xml]\n----\n\u003crepository\u003e\n    \u003cid\u003ejfrog-oss-snapshot-local\u003c/id\u003e\n    \u003cname\u003eJFrog OSS repository for snapshots\u003c/name\u003e\n    \u003curl\u003ehttps://oss.jfrog.org/oss-snapshot-local\u003c/url\u003e\n    \u003csnapshots\u003e\n        \u003cenabled\u003etrue\u003c/enabled\u003e\n    \u003c/snapshots\u003e\n\u003c/repository\u003e\n----\n\n\n== License\n\nThis project is licensed under http://opensource.org/licenses/MIT[MIT license].\nFor the full text of the license, see the link:LICENSE[LICENSE] file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Fvalidator-spring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjirutka%2Fvalidator-spring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjirutka%2Fvalidator-spring/lists"}