Skip to content

Commit be4c8a7

Browse files
authored
Merge pull request #148 from svix/lucho/email-format
Allow format=email for string types
2 parents 1b6c578 + f8a8e4c commit be4c8a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/api/types.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ impl FieldType {
462462
}
463463

464464
match obj.format.as_deref() {
465-
None | Some("color") => Self::String,
465+
None | Some("color") | Some("email") => Self::String,
466466
Some("date-time") => Self::DateTime,
467467
Some("uri") => Self::Uri,
468468
Some(f) => bail!("unsupported string format: `{f:?}`"),

0 commit comments

Comments
 (0)