Skip to content

Commit e674b77

Browse files
authored
Update README.md
1 parent 8ee9678 commit e674b77

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ composer require micro/dto
2626
<property name="email" type="string">
2727
<validation>
2828
<not_blank/>
29-
<length min="6" max="50"/>
30-
<regex pattern="/^(.[aA-zA]+)$/"/>
29+
<email/>
3130
</validation>
3231
</property>
32+
<property name="username" type="string">
33+
<validation>
34+
<length min="6" max="50"/>
35+
<regex pattern="/^(.[aA-zA]+)$/"/>
36+
</validation>
37+
</property>
3338
<property name="age" type="int">
3439
<validation>
3540
<not_blank groups="put"/>

0 commit comments

Comments
 (0)