We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d35b8f commit 9f0f407Copy full SHA for 9f0f407
internal/dev_server/sdk/server_flags.go
@@ -36,7 +36,8 @@ type ServerFlag struct {
36
type ServerFlags map[string]ServerFlag
37
38
type data struct {
39
- Flags ServerFlags `json:"flags"`
+ Flags ServerFlags `json:"flags"`
40
+ Segments struct{} `json:"segments"` // We need to send an empty object over the wire for compatibility with some SDKs
41
}
42
type ServerAllPayload struct {
43
Path string `json:"path"`
@@ -46,7 +47,7 @@ type ServerAllPayload struct {
46
47
func ServerAllPayloadFromFlagsState(state model.FlagsState) ServerAllPayload {
48
return ServerAllPayload{
49
Path: "",
- Data: data{ServerFlagsFromFlagsState(state)},
50
+ Data: data{Flags: ServerFlagsFromFlagsState(state)},
51
52
53
0 commit comments