Record project continuation changes
This commit is contained in:
@@ -260,6 +260,7 @@ type SyntheticMeshRouteConfig struct {
|
||||
}
|
||||
|
||||
type SyntheticMeshConfig struct {
|
||||
Raw json.RawMessage `json:"-"`
|
||||
Enabled bool `json:"enabled"`
|
||||
SchemaVersion string `json:"schema_version"`
|
||||
ClusterID string `json:"cluster_id"`
|
||||
@@ -286,6 +287,17 @@ type SyntheticMeshConfig struct {
|
||||
ProductionForwarding bool `json:"production_forwarding"`
|
||||
}
|
||||
|
||||
func (c *SyntheticMeshConfig) UnmarshalJSON(data []byte) error {
|
||||
type syntheticMeshConfigAlias SyntheticMeshConfig
|
||||
var decoded syntheticMeshConfigAlias
|
||||
if err := json.Unmarshal(data, &decoded); err != nil {
|
||||
return err
|
||||
}
|
||||
*c = SyntheticMeshConfig(decoded)
|
||||
c.Raw = append(c.Raw[:0], data...)
|
||||
return nil
|
||||
}
|
||||
|
||||
type FabricServiceChannelRemediationCommand struct {
|
||||
SchemaVersion string `json:"schema_version"`
|
||||
CommandID string `json:"command_id"`
|
||||
|
||||
Reference in New Issue
Block a user