https://github.com/ermos/polyrule
🛠️ One file to rule them all - Compile validator rules into multiple languages
https://github.com/ermos/polyrule
Last synced: about 1 month ago
JSON representation
🛠️ One file to rule them all - Compile validator rules into multiple languages
- Host: GitHub
- URL: https://github.com/ermos/polyrule
- Owner: ermos
- License: mit
- Created: 2023-02-25T04:16:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T14:39:54.000Z (over 3 years ago)
- Last Synced: 2025-11-16T21:05:46.745Z (7 months ago)
- Language: Go
- Homepage: https://polyrule.smiti.fr/
- Size: 103 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🛠️ Polyrule
> One file to rule them all - Compile validator rules into multiple languages
Polyrule is a versatile command-line interface tool
that streamlines the process of creating validation
rules for data across multiple programming languages.
With Polyrule, you can easily define and manage a wide
range of validation rules, from simple data type checks
to complex business logic rules, in a single place !
[](https://pkg.go.dev/github.com/ermos/polyrule)
[](https://github.com/ermos/polyrule/tags)
[](https://goreportcard.com/report/github.com/ermos/polyrule)
[](https://codeclimate.com/github/ermos/polyrule/maintainability)
## 📦 Installation
### Linux
```bash
curl -sL https://github.com/ermos/polyrule/releases/latest/download/polyrule_Linux_$(uname -m).tar.gz | tar -xvz --wildcards 'polyrule' \
&& sudo mv polyrule /usr/local/bin/
```
### Mac
```bash
curl -sL https://github.com/ermos/polyrule/releases/latest/download/polyrule_macOS_all.tar.gz | tar -xvz --wildcards 'polyrule' \
&& sudo mv polyrule /usr/local/bin/
```
### Windows
Download the right archive from [the latest release page](https://github.com/ermos/polyrule/releases/latest).
### Alternative
From `go install` :
```bash
go install github.com/ermos/polyrule@latest
```
From `source` :
```bash
git clone git@github.com:ermos/polyrule.git
make build/bin
```
## 📚 Documentation
You can find the documentation
[here](https://polyrule.smiti.fr/).
## 🤝 Contributing
Contributions to `polyrule` are always welcome!
If you find a bug or have a feature request, please open an issue on GitHub.
If you want to contribute code, please fork the repository and submit a pull request.