Writing and debugging Copper rules
Validation policies in Skycap rely on Copper, an open-source tool developed by Cloud 66. It has its own excellent documentation and this should be the starting point for anyone wanting to craft their own validation policies for Skycap.
Debugging Copper DSL
Writing valid and conformant rules in Copper DSL will usually require some debugging. Rather than using the Skycap web interface to debug, we suggest that you:
- Install Copper on your local machine
- Download the yml file (Stencil) from your application against which you want to test a rule
- Write your rule in Copper DSL and save it as a
- Test the rule against your yml file in your terminal using the
$ copper checkfunction (you can find the syntax here).
Once you have a rule that works locally, you can add it to Skycap and run it against the Stencil in question by Rendering the Formation.
If you’re unsure of how to do this, follow the validation policies tutorial to acquaint yourself with the steps required.