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 !
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/
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/
Download the right archive from the latest release page.
From go install
:
go install github.com/ermos/polyrule@latest
From source
:
git clone [email protected]:ermos/polyrule.git
make build/bin
You can find the documentation here.
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.