summaryrefslogtreecommitdiff
path: root/examples/kwalify-2.pp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/kwalify-2.pp')
-rw-r--r--examples/kwalify-2.pp24
1 files changed, 0 insertions, 24 deletions
diff --git a/examples/kwalify-2.pp b/examples/kwalify-2.pp
deleted file mode 100644
index 3f4ec33..0000000
--- a/examples/kwalify-2.pp
+++ /dev/null
@@ -1,24 +0,0 @@
-$schema = {
- 'type' => 'map',
- 'mapping' => {
- 'name' => {
- 'type' => 'str',
- 'required' => true,
- },
- 'email' => {
- 'type' => 'str',
- 'pattern' => '/@/',
- },
- 'age' => {
- 'type' => 'str',
- 'pattern' => '/^\d+$/',
- },
- }
-}
-$document = {
- 'name' => 'foo',
- 'email' => 'foo@mail.com',
- 'age' => 20,
-}
-
-kwalify($schema, $document)