fix: allow snake case keys for ip based rate limit config entry (#19277)

* fix: allow snake case keys for ip based rate limit config entry

* chore: add changelog
pull/19298/head
Poonam Jadhav 1 year ago committed by GitHub
parent 5e517c5980
commit 2bd38d8806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
```release-note:bug
server: **(Enterprise Only)** Fixed an issue where snake case keys were rejected when configuring the control-plane-request-limit config entry
```

@ -4,8 +4,8 @@
package api package api
type ReadWriteRatesConfig struct { type ReadWriteRatesConfig struct {
ReadRate float64 ReadRate float64 `alias:"read_rate"`
WriteRate float64 WriteRate float64 `alias:"write_rate"`
} }
type RateLimitIPConfigEntry struct { type RateLimitIPConfigEntry struct {
@ -16,8 +16,8 @@ type RateLimitIPConfigEntry struct {
Meta map[string]string `json:",omitempty"` Meta map[string]string `json:",omitempty"`
// overall limits // overall limits
ReadRate float64 ReadRate float64 `alias:"read_rate"`
WriteRate float64 WriteRate float64 `alias:"write_rate"`
//limits specific to a type of call //limits specific to a type of call
ACL *ReadWriteRatesConfig `json:",omitempty"` // OperationCategoryACL OperationCategory = "ACL" ACL *ReadWriteRatesConfig `json:",omitempty"` // OperationCategoryACL OperationCategory = "ACL"

Loading…
Cancel
Save