User-Integration Tests and better infrastructure #28
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ pub fn setup(cfg: &mut actix_web::web::ServiceConfig) {
|
||||||
pub struct CreateUser {
|
pub struct CreateUser {
|
||||||
#[validate(length(min = 4, max = 255))]
|
#[validate(length(min = 4, max = 255))]
|
||||||
/// Username (minimum 4 characters, maximum 255 characters)
|
/// Username (minimum 4 characters, maximum 255 characters)
|
||||||
|
/// TODO: Don't allow spaces, only alphanumeric characters and underscores
|
||||||
username: String,
|
username: String,
|
||||||
#[validate(length(min = 3))]
|
#[validate(length(min = 3))]
|
||||||
/// Full name of the user (minimum 3 characters)
|
/// Full name of the user (minimum 3 characters)
|
||||||
|
|
Loading…
Add table
Reference in a new issue