{"id":16179256,"url":"https://github.com/jonashackt/spring-easyrules","last_synced_at":"2025-03-19T01:30:56.239Z","repository":{"id":33083133,"uuid":"36720372","full_name":"jonashackt/spring-easyrules","owner":"jonashackt","description":null,"archived":false,"fork":false,"pushed_at":"2019-08-20T07:28:30.000Z","size":36,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T13:47:10.674Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jonashackt.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}},"created_at":"2015-06-02T08:49:36.000Z","updated_at":"2021-08-29T23:02:22.000Z","dependencies_parsed_at":"2022-09-13T14:40:33.762Z","dependency_job_id":null,"html_url":"https://github.com/jonashackt/spring-easyrules","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspring-easyrules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspring-easyrules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspring-easyrules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonashackt%2Fspring-easyrules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonashackt","download_url":"https://codeload.github.com/jonashackt/spring-easyrules/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243958082,"owners_count":20374791,"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-10-10T05:26:26.923Z","updated_at":"2025-03-19T01:30:55.916Z","avatar_url":"https://github.com/jonashackt.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spring-easyrules\n[![Build Status](https://travis-ci.org/jonashackt/spring-easyrules.svg?branch=master)](https://travis-ci.org/jonashackt/spring-easyrules)\n[![Coverage Status](https://coveralls.io/repos/jonashackt/spring-easyrules/badge.svg)](https://coveralls.io/r/jonashackt/spring-easyrules)\n\nSmall example project showing useage of [easyrules] and how to [define rules].\n\nOne Requirement of functional validation is often, that Rule-Data could be configured e.g. via property-files. This projects makes use of Spring Boot's @ConfigurationProperties Annotation. See the very good [blog-post from spring.io/blog] and the [Spring Boot docs].\n\nHaving the @EnableConfigurationProperties Annotation at your SpringBootApplication-Class in place, Spring automatically loads the rules.yml defined properties to your Rule-Pojos fields - without doing something yourself.\n\nJust watch out - if you use cool YAML-Files for that - only use Camel-Case with one Letter big, not more (like myPropertything is ok, myPropertyThing is not!). Otherwise you get Errors you simply could´nt understand. At least i could´nt :) Also, in the Spring Boot Docs there is a reference to the yourhost:yourport/configprops - URL. There you could see your properties, if set up correctly. But this does not allways show the right contents, even if they are correctly loaded! So watch out a bit - and you´ll get fun with that stuff :D\n\nMaybe, it´s better to use dashed notation, like seen in the [foorule] with the \"foo-bar-field-value\" that is used as a \"fooBarFieldValue\" in the RulePojo. This notation is also described in the [docs]. You could also combine the CamelCase (once) with dashes, like \"bla-blubbField\", if you want to.\n\nFor Eclipse development of YAML-Ruleproperty-Files, install the [Eclipse YAML Editor plugin YEdit]\n\n[easyrules]:http://www.easyrules.org/index.html\n[define rules]:http://www.easyrules.org/user-guide/defining-rules.html\n[blog-post from spring.io/blog]:https://spring.io/blog/2015/01/13/configuring-it-all-out-or-12-factor-app-style-configuration-with-spring\n[Spring Boot docs]:http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html\n[Eclipse YAML Editor plugin YEdit]:https://marketplace.eclipse.org/content/yedit\n[foorule]:https://github.com/jonashackt/spring-easyrules/blob/master/src/main/resources/rules.yml\n[docs]:http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html#boot-features-external-config-relaxed-binding","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashackt%2Fspring-easyrules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonashackt%2Fspring-easyrules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonashackt%2Fspring-easyrules/lists"}