mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 22:52:25 -05:00 
			
		
		
		
	[chore]: Bump github.com/gin-contrib/cors from 1.4.0 to 1.5.0 (#2388)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								e4e0a5e3f6
							
						
					
				
			
			
				commit
				
					
						66b77acb1c
					
				
			
		
					 169 changed files with 173005 additions and 56262 deletions
				
			
		
							
								
								
									
										16
									
								
								vendor/github.com/go-playground/validator/v10/options.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								vendor/github.com/go-playground/validator/v10/options.go
									
										
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | |||
| package validator | ||||
| 
 | ||||
| // Option represents a configurations option to be applied to validator during initialization. | ||||
| type Option func(*Validate) | ||||
| 
 | ||||
| // WithRequiredStructEnabled enables required tag on non-pointer structs to be applied instead of ignored. | ||||
| // | ||||
| // This was made opt-in behaviour in order to maintain backward compatibility with the behaviour previous | ||||
| // to being able to apply struct level validations on struct fields directly. | ||||
| // | ||||
| // It is recommended you enabled this as it will be the default behaviour in v11+ | ||||
| func WithRequiredStructEnabled() Option { | ||||
| 	return func(v *Validate) { | ||||
| 		v.requiredStructEnabled = true | ||||
| 	} | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue