summaryrefslogtreecommitdiffstats
path: root/javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml
diff options
context:
space:
mode:
Diffstat (limited to 'javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml')
-rw-r--r--javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml b/javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml
new file mode 100644
index 0000000..7b1f1b6
--- /dev/null
+++ b/javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml
@@ -0,0 +1,30 @@
+type: seq
+sequence:
+ -
+ type: map
+ mapping:
+ name:
+ type: str
+ required: yes
+ email:
+ type: str
+ required: yes
+ pattern: /@/
+ password:
+ type: text
+ length: { max: 16, min: 8 }
+ age:
+ type: int
+ range: { max: 30, min: 18 }
+ # or assert: 18 <= val && val <= 30
+ blood:
+ type: str
+ enum:
+ - A
+ - B
+ - O
+ - AB
+ birth:
+ type: date
+ memo:
+ type: any