Skip to content

Commit e4be824

Browse files
authored
[Bugfix] Ensure Opts are passed (#1850)
1 parent 9044782 commit e4be824

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/deployment/resources/gateway/gateway_config_destination_static.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ type ConfigDestinationStatic[T any] struct {
4343

4444
Marshaller ConfigDestinationStaticMarshaller[T] `json:"-"`
4545

46-
Options []util.Mod[protojson.MarshalOptions]
46+
Options []util.Mod[protojson.MarshalOptions] `json:"-"`
4747
}
4848

4949
func (c *ConfigDestinationStatic[T]) Validate() error {
@@ -67,7 +67,7 @@ func (c *ConfigDestinationStatic[T]) Marshall() ([]byte, error) {
6767
if m := c.Marshaller; m == nil {
6868
return json.Marshal(c.Response)
6969
} else {
70-
return m(c.Response)
70+
return m(c.Response, c.Options...)
7171
}
7272
}
7373

0 commit comments

Comments
 (0)