{"id":22955253,"url":"https://github.com/gildastema/spring-validation-extends","last_synced_at":"2026-05-03T07:35:25.809Z","repository":{"id":139977254,"uuid":"559956675","full_name":"gildastema/spring-validation-extends","owner":"gildastema","description":"Add custom validation for spring validation","archived":false,"fork":false,"pushed_at":"2022-11-01T11:26:33.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-07T16:16:50.551Z","etag":null,"topics":["spring","validation-library"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gildastema.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-31T13:01:41.000Z","updated_at":"2022-11-01T11:48:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"e7bd3a7a-3a13-404b-9698-d7fc9002a50b","html_url":"https://github.com/gildastema/spring-validation-extends","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/gildastema%2Fspring-validation-extends","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildastema%2Fspring-validation-extends/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildastema%2Fspring-validation-extends/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gildastema%2Fspring-validation-extends/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gildastema","download_url":"https://codeload.github.com/gildastema/spring-validation-extends/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246735343,"owners_count":20825223,"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":["spring","validation-library"],"created_at":"2024-12-14T16:28:48.439Z","updated_at":"2026-05-03T07:35:20.770Z","avatar_url":"https://github.com/gildastema.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Validation Extends\nThe `spring-validation-extends` package provides easy to use constraints to extends validations. By adding new validations\nexamples: unique, matches etc.\n\n[![GitHub](https://github.com/gildastema/spring-validation-extends/actions/workflows/test.yml/badge.svg)](https://github.com/gildastema/spring-validation-extends/actions/workflows/test.yml)\n[![](https://jitpack.io/v/gildastema/spring-validation-extends.svg)](https://jitpack.io/#gildastema/spring-validation-extends)\n\n## Installation \n    - Gradle \n```groovy\nallprojects {\n\t\trepositories {\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n\ndependencies {\n    implementation 'com.github.gildastema:spring-validation-extends:Tag'\n}\n```\n\n    - Maven \n\n````xml\n\u003crepositories\u003e\n\t\t\u003crepository\u003e\n\t\t    \u003cid\u003ejitpack.io\u003c/id\u003e\n\t\t    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\t\t\u003c/repository\u003e\n\u003c/repositories\u003e\n\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.gildastema\u003c/groupId\u003e\n    \u003cartifactId\u003espring-validation-extends\u003c/artifactId\u003e\n    \u003cversion\u003eTag\u003c/version\u003e\n\u003c/dependency\u003e\n````\n\n## Usage\n\n    - Match \nThis decorator is use to ensure two values is same a common usage it is a  password confirmarion.\n\n```java\n\n// Request class\n\nimport com.gildastema.validations.constraints.Match;\n\n@Match(field = \"password\", confirmation = \"passwordConfirmation\")\npublic class MatchRequest {\n     private   String password;\n     private String passwordConfirmation;\n\n\n    public MatchRequest(){\n\n    }\n\n    public MatchRequest(String password, String passwordConfirmation) {\n        this.password = password;\n        this.passwordConfirmation = passwordConfirmation;\n    }\n\n    public String getPassword() {\n        return password;\n    }\n\n    public String getPasswordConfirmation() {\n        return passwordConfirmation;\n    }\n\n    public void setPassword(String password) {\n        this.password = password;\n    }\n\n    public void setPasswordConfirmation(String passwordConfirmation){\n        this.passwordConfirmation = passwordConfirmation;\n    }\n}\n\n// controller class\n\n    @PostMapping(\"api/match\")\n    public void match(@Valid @RequestBody MatchRequest matchRequest){\n\n    }\n```\n\n    - Unique\nThis one is use to ensure that one value is already exist in database like an email.\n\n```java\n// class request\n\npublic class UniqueRequest {\n    @Unique(field = \"email\", table = \"persons\")\n    private String email;\n\n    public UniqueRequest(){\n\n    }\n\n    public UniqueRequest(String email) {\n        this.email = email;\n    }\n\n    public String getEmail() {\n        return email;\n    }\n\n    public void setEmail(String email) {\n        this.email = email;\n    }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildastema%2Fspring-validation-extends","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgildastema%2Fspring-validation-extends","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgildastema%2Fspring-validation-extends/lists"}