Skip to content

Commit 24cccee

Browse files
maksymlumenclaude
andcommitted
Remove Schema/Data fields from TinyWidget — revert content widgets
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1afb64e commit 24cccee

File tree

6 files changed

+1
-32
lines changed

6 files changed

+1
-32
lines changed

api/v1alpha1/tinywidgetpage_types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ type TinyWidget struct {
6767
GridY int `json:"gridY,omitempty"`
6868
GridW int `json:"gridW,omitempty"`
6969
GridH int `json:"gridH,omitempty"`
70-
Schema []byte `json:"schema,omitempty"` // Full JSON Schema (content widgets: Port=="")
71-
Data []byte `json:"data,omitempty"` // JSON data (content widgets: Port=="")
7270
}
7371

7472
func init() {

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

charts/tinysystems-crd/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
1515
# Versions are expected to follow Semantic Versioning (https://semver.org/)
16-
version: 0.1.41
16+
version: 0.1.42
1717
# This is the version number of the application being deployed. This version number should be
1818
# incremented each time you make changes to the application. Versions are not expected to
1919
# follow Semantic Versioning. They should reflect the version the application is using.

charts/tinysystems-crd/templates/tinywidgetpage-crd.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ spec:
4545
to remove/update
4646
items:
4747
properties:
48-
data:
49-
format: byte
50-
type: string
5148
gridH:
5249
type: integer
5350
gridW:
@@ -60,9 +57,6 @@ spec:
6057
type: string
6158
port:
6259
type: string
63-
schema:
64-
format: byte
65-
type: string
6660
schemaPatch:
6761
format: byte
6862
type: string

config/crd/bases/operator.tinysystems.io_tinywidgetpages.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ spec:
4444
to remove/update
4545
items:
4646
properties:
47-
data:
48-
format: byte
49-
type: string
5047
gridH:
5148
type: integer
5249
gridW:
@@ -59,9 +56,6 @@ spec:
5956
type: string
6057
port:
6158
type: string
62-
schema:
63-
format: byte
64-
type: string
6559
schemaPatch:
6660
format: byte
6761
type: string

pkg/utils/project_export.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ type ExportWidget struct {
3030
GridW int `json:"gridW"`
3131
GridH int `json:"gridH"`
3232
SchemaPatch json.RawMessage `json:"schemaPatch,omitempty"`
33-
Schema json.RawMessage `json:"schema,omitempty"`
34-
Data json.RawMessage `json:"data,omitempty"`
3533
}
3634

3735
// ProjectExport represents the full project export format
@@ -165,11 +163,6 @@ func validatePage(index int, page *ExportPage) {
165163
for i, widget := range page.Widgets {
166164
widgetLogCtx := logCtx.With().Int("widgetIndex", i).Str("widgetPort", widget.Port).Logger()
167165

168-
// Content widgets (no port) don't need port validation
169-
if widget.Port == "" {
170-
continue
171-
}
172-
173166
// Validate port format: must be "nodeId:portName"
174167
if widget.Port == "" {
175168
widgetLogCtx.Warn().Str("field", "port").Msg("import validation: widget missing port field")

0 commit comments

Comments
 (0)