You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Remove the dependency on sqlx in the config crate
This commit is contained in:
@@ -40,3 +40,12 @@ pub fn hostname(_gen: &mut SchemaGenerator) -> Schema {
|
||||
..SchemaObject::default()
|
||||
})
|
||||
}
|
||||
|
||||
/// An email address
|
||||
pub fn mailbox(_gen: &mut SchemaGenerator) -> Schema {
|
||||
Schema::Object(SchemaObject {
|
||||
instance_type: Some(InstanceType::String.into()),
|
||||
format: Some("email".to_owned()),
|
||||
..SchemaObject::default()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user