mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 01:47:13 +00:00 
			
		
		
		
	Add min validator
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
		
							parent
							
								
									c680392a81
								
							
						
					
					
						commit
						8d92bf8a0a
					
				| @ -11,7 +11,7 @@ const userCreationSchema = yup | |||||||
|     email: validators.email.required(), |     email: validators.email.required(), | ||||||
|     firstname: validators.firstname.required(), |     firstname: validators.firstname.required(), | ||||||
|     lastname: validators.lastname.required(), |     lastname: validators.lastname.required(), | ||||||
|     roles: validators.roles, // FIXME: set min to 1 once the create  role API is created,
 |     roles: validators.roles.min(1), | ||||||
|   }) |   }) | ||||||
|   .noUnknown(); |   .noUnknown(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Alexandre Bodin
						Alexandre Bodin