Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIRE-717] Fix unknown fields serialization issue #174

Merged
merged 6 commits into from
Feb 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix for test
  • Loading branch information
rjtokenring committed Jan 31, 2025
commit 290039d810dacb462eca1c0016aa2f5175a4fa84
12 changes: 6 additions & 6 deletions internal/template/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var (
Widgets: []iotclient.Widget{
{Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4),
X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{"showLabels": true},
Type: "Switch",
Type: "Switch", AdditionalProperties: map[string]any{},
},
},
}
Expand All @@ -78,7 +78,7 @@ var (
Widgets: []iotclient.Widget{
{Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4),
X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{},
Type: "Switch",
Type: "Switch", AdditionalProperties: map[string]any{},
},
},
}
Expand All @@ -88,7 +88,7 @@ var (
Widgets: []iotclient.Widget{
{Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4),
X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{"showLabels": true}, Type: "Switch",
Variables: []string{switchyID},
Variables: []string{switchyID}, AdditionalProperties: map[string]any{},
},
},
}
Expand All @@ -98,7 +98,7 @@ var (
Widgets: []iotclient.Widget{
{Name: toStringPointer("Switch-name"), Height: 1, HeightMobile: toInt64Pointer(2), Width: 3, WidthMobile: toInt64Pointer(4),
X: 5, XMobile: toInt64Pointer(6), Y: 7, YMobile: toInt64Pointer(8), Options: map[string]interface{}{"showLabels": true}, Type: "Switch",
Variables: []string{switchyOverriddenID},
Variables: []string{switchyOverriddenID}, AdditionalProperties: map[string]any{},
},
},
}
Expand All @@ -108,11 +108,11 @@ var (
Widgets: []iotclient.Widget{
{Name: toStringPointer("blink_speed"), Height: 7, Width: 8,
X: 7, Y: 5, Options: map[string]interface{}{"min": float64(0), "max": float64(5000)}, Type: "Slider",
Variables: []string{blinkSpeedID},
Variables: []string{blinkSpeedID}, AdditionalProperties: map[string]any{},
},
{Name: toStringPointer("relay_2"), Height: 5, Width: 5,
X: 5, Y: 0, Options: map[string]interface{}{"showLabels": true}, Type: "Switch",
Variables: []string{relayID},
Variables: []string{relayID}, AdditionalProperties: map[string]any{},
},
},
}
Expand Down
Loading