Skip to content

Commit c737dd6

Browse files
small addition to support extra metadata for ui/other purposes
1 parent afab9d3 commit c737dd6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scheme/schemebuilder_json.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ type SchemeJSON struct {
2222
RangeMax int64 `json:"rangeMax,omitempty"`
2323
DateFrom string `json:"dateFrom,omitempty"`
2424
DateTo string `json:"dateTo,omitempty"`
25+
26+
// Extra metadata for UI or other purposes
27+
Extra map[string]any `json:"extra,omitempty"`
2528
}
2629

2730
func BuildScheme(js SchemeJSON) Scheme {

0 commit comments

Comments
 (0)