diff --git a/models/hash_type.go b/models/hash_type.go index bd1a1e17..fc267f5c 100644 --- a/models/hash_type.go +++ b/models/hash_type.go @@ -36,7 +36,7 @@ import ( type HashType struct { // function - // Enum: [sdbm djb2 wt6 crc32] + // Enum: [sdbm djb2 wt6 crc32 none] Function string `json:"function,omitempty"` // method @@ -74,7 +74,7 @@ var hashTypeTypeFunctionPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["sdbm","djb2","wt6","crc32"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["sdbm","djb2","wt6","crc32","none"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -95,6 +95,9 @@ const ( // HashTypeFunctionCrc32 captures enum value "crc32" HashTypeFunctionCrc32 string = "crc32" + + // HashTypeFunctionNone captures enum value "none" + HashTypeFunctionNone string = "none" ) // prop value enum diff --git a/specification/build/haproxy_spec.yaml b/specification/build/haproxy_spec.yaml index 4d255080..19fee791 100644 --- a/specification/build/haproxy_spec.yaml +++ b/specification/build/haproxy_spec.yaml @@ -8940,6 +8940,7 @@ definitions: - djb2 - wt6 - crc32 + - none type: string method: enum: diff --git a/specification/models/configuration/hash_type.yaml b/specification/models/configuration/hash_type.yaml index 4adf9449..3dbd93d7 100644 --- a/specification/models/configuration/hash_type.yaml +++ b/specification/models/configuration/hash_type.yaml @@ -7,7 +7,7 @@ hash_type: enum: [map-based, consistent] function: type: string - enum: [sdbm, djb2, wt6, crc32] + enum: [sdbm, djb2, wt6, crc32, none] modifier: type: string enum: [avalanche]