diff options
author | Serban Jora <sj2381@att.com> | 2018-04-10 15:33:46 -0400 |
---|---|---|
committer | Serban Jora <sj2381@att.com> | 2018-04-10 16:02:37 -0400 |
commit | fd3287187e487d8b0789484def296074e985b7cb (patch) | |
tree | db5e50544ac9fa515be5a647a8489815131ab711 /javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml | |
parent | dc3ecc22915249d0fb542ab23b400abd6b5ef620 (diff) |
Add more unit testing
Unit testing for kwalify parser and validator and for domain model representation.
Fix oparent reference in pom in datse format in docker image tag.
Change-Id: Icca11ae7fc773cae3de910acb10fcacd51b909a4
Signed-off-by: Serban Jora <sj2381@att.com>
Issue-ID: MODELING-53
Signed-off-by: Serban Jora <sj2381@att.com>
Diffstat (limited to 'javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml')
-rw-r--r-- | javatoscachecker/kwalify/src/test/resources/validateRuleSchema.yml | 30 |
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 |