Skip to content

Commit 73ef463

Browse files
committed
An email is a string, not much else.
1 parent f791815 commit 73ef463

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/JsonSchema/Constraints/TypeConstraint.php

+4
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,10 @@ protected function validateType($value, $type)
127127
if ('string' === $type) {
128128
return is_string($value);
129129
}
130+
131+
if ('email' === $type) {
132+
return is_string($value);
133+
}
130134

131135
if ('null' === $type) {
132136
return is_null($value);

0 commit comments

Comments
 (0)