From 2d6681d297171a3b4f442090c958c5109a1e06fe Mon Sep 17 00:00:00 2001 From: Alvaro Cabrera <pateketrueke@gmail.com> Date: Wed, 26 Nov 2014 20:44:02 -0600 Subject: [PATCH] String testing --- spec/core/types/strings.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 spec/core/types/strings.json diff --git a/spec/core/types/strings.json b/spec/core/types/strings.json new file mode 100644 index 00000000..f2fdc475 --- /dev/null +++ b/spec/core/types/strings.json @@ -0,0 +1,24 @@ +[ + { + "description": "generated string values", + "tests": [ + { + "description": "should handle minLength", + "schema": { + "type": "string", + "minLength": 10 + }, + "valid": true + }, + { + "description": "should handle maxLength", + "schema": { + "type": "string", + "minLength": 20, + "maxLength": 30 + }, + "valid": true + } + ] + } +] -- GitLab