diff --git a/lib/types/string.js b/lib/types/string.js index 71b2568d51c393a414a7c36851e41a54b7286c47..ce13ed1cb487d9c4bbf7445df2de93971ab5aa95 100644 Binary files a/lib/types/string.js and b/lib/types/string.js differ diff --git a/spec/core/types/strings.json b/spec/core/types/strings.json index f589004167c2cf74574858022470ba4c7445333d..d742e2ac36084cb9ad3e1dbfd091dcdee6fd2964 100644 --- a/spec/core/types/strings.json +++ b/spec/core/types/strings.json @@ -60,6 +60,24 @@ "required": ["a", "b", "c", "d", "e", "f"] }, "valid": true + }, + { + "description": "should handle format (faker)", + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "faker": "name.findName" + }, + "email": { + "type": "string", + "faker": "internet.email" + } + }, + "required": ["name", "email"] + }, + "valid": true } ] }