mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	[API] Better validation of admin/emoji/add
This commit is contained in:
		
							parent
							
								
									42ac7b954d
								
							
						
					
					
						commit
						e813fe16b9
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -12,15 +12,15 @@ export const meta = {
 | 
			
		|||
 | 
			
		||||
	params: {
 | 
			
		||||
		name: {
 | 
			
		||||
			validator: $.str
 | 
			
		||||
			validator: $.str.min(1)
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		url: {
 | 
			
		||||
			validator: $.str
 | 
			
		||||
			validator: $.str.min(1)
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		aliases: {
 | 
			
		||||
			validator: $.arr($.str).optional,
 | 
			
		||||
			validator: $.arr($.str.min(1)).optional,
 | 
			
		||||
			default: [] as string[]
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue