Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Commit

Permalink
Fix bug on Email type generator
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Jul 17, 2018
1 parent 8431764 commit 2664974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SchemaGenerator/TypeGenerator/EmailTypeGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function supports(array $mapping, array $context = []): bool

public function generate(array $mapping, array $context = []): array
{
unset($mapping['fieldName']);
$mapping['fieldName'] = null;

return ['pattern' => '^[\\w\\.-]+@[\\w\\.-]+\\.[A-z]+$'] + $this->typeGenerator->generate($mapping, $context);
}
Expand Down

0 comments on commit 2664974

Please sign in to comment.