mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 09:42:26 -05:00 
			
		
		
		
	[chore] Bump go swagger (#2871)
* bump go swagger version * bump swagger version
This commit is contained in:
		
					parent
					
						
							
								3a369d834a
							
						
					
				
			
			
				commit
				
					
						fd8a724e77
					
				
			
		
					 251 changed files with 10841 additions and 11896 deletions
				
			
		
							
								
								
									
										12
									
								
								vendor/github.com/go-openapi/validate/values.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								vendor/github.com/go-openapi/validate/values.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -120,7 +120,7 @@ func UniqueItems(path, in string, data interface{}) *errors.Validation { | |||
| 
 | ||||
| // MinLength validates a string for minimum length | ||||
| func MinLength(path, in, data string, minLength int64) *errors.Validation { | ||||
| 	strLen := int64(utf8.RuneCount([]byte(data))) | ||||
| 	strLen := int64(utf8.RuneCountInString(data)) | ||||
| 	if strLen < minLength { | ||||
| 		return errors.TooShort(path, in, minLength, data) | ||||
| 	} | ||||
|  | @ -129,7 +129,7 @@ func MinLength(path, in, data string, minLength int64) *errors.Validation { | |||
| 
 | ||||
| // MaxLength validates a string for maximum length | ||||
| func MaxLength(path, in, data string, maxLength int64) *errors.Validation { | ||||
| 	strLen := int64(utf8.RuneCount([]byte(data))) | ||||
| 	strLen := int64(utf8.RuneCountInString(data)) | ||||
| 	if strLen > maxLength { | ||||
| 		return errors.TooLong(path, in, maxLength, data) | ||||
| 	} | ||||
|  | @ -315,7 +315,7 @@ func FormatOf(path, in, format, data string, registry strfmt.Registry) *errors.V | |||
| // TODO: Normally, a JSON MAX_SAFE_INTEGER check would ensure conversion remains loss-free | ||||
| func MaximumNativeType(path, in string, val interface{}, max float64, exclusive bool) *errors.Validation { | ||||
| 	kind := reflect.ValueOf(val).Type().Kind() | ||||
| 	switch kind { | ||||
| 	switch kind { //nolint:exhaustive | ||||
| 	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | ||||
| 		value := valueHelp.asInt64(val) | ||||
| 		return MaximumInt(path, in, value, int64(max), exclusive) | ||||
|  | @ -345,7 +345,7 @@ func MaximumNativeType(path, in string, val interface{}, max float64, exclusive | |||
| // TODO: Normally, a JSON MAX_SAFE_INTEGER check would ensure conversion remains loss-free | ||||
| func MinimumNativeType(path, in string, val interface{}, min float64, exclusive bool) *errors.Validation { | ||||
| 	kind := reflect.ValueOf(val).Type().Kind() | ||||
| 	switch kind { | ||||
| 	switch kind { //nolint:exhaustive | ||||
| 	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | ||||
| 		value := valueHelp.asInt64(val) | ||||
| 		return MinimumInt(path, in, value, int64(min), exclusive) | ||||
|  | @ -375,7 +375,7 @@ func MinimumNativeType(path, in string, val interface{}, min float64, exclusive | |||
| // TODO: Normally, a JSON MAX_SAFE_INTEGER check would ensure conversion remains loss-free | ||||
| func MultipleOfNativeType(path, in string, val interface{}, multipleOf float64) *errors.Validation { | ||||
| 	kind := reflect.ValueOf(val).Type().Kind() | ||||
| 	switch kind { | ||||
| 	switch kind { //nolint:exhaustive | ||||
| 	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | ||||
| 		value := valueHelp.asInt64(val) | ||||
| 		return MultipleOfInt(path, in, value, int64(multipleOf)) | ||||
|  | @ -399,7 +399,7 @@ func IsValueValidAgainstRange(val interface{}, typeName, format, prefix, path st | |||
| 
 | ||||
| 	// What is the string representation of val | ||||
| 	var stringRep string | ||||
| 	switch kind { | ||||
| 	switch kind { //nolint:exhaustive | ||||
| 	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: | ||||
| 		stringRep = swag.FormatUint64(valueHelp.asUint64(val)) | ||||
| 	case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue