Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Nov 24, 2024
1 parent 73457ba commit 24ae5ea
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 27 deletions.
44 changes: 18 additions & 26 deletions core/go.std/silverpelt/config_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,24 @@ type CanonicalSettingsError struct {
}

type CanonicalColumnType struct {
Scalar *struct {
ColumnType CanonicalInnerColumnType `json:"column_type"`
} `json:"Scalar,omitempty"`
Array *struct {
Inner CanonicalInnerColumnType `json:"inner"`
} `json:"Array,omitempty"`
Type string `json:"type"` // Either Scalar or Array
Uuid *struct{} `json:"Uuid,omitempty"`
String *struct {
MinLength *int `json:"min_length,omitempty"`
MaxLength *int `json:"max_length,omitempty"`
AllowedValues []string `json:"allowed_values,omitempty"`
Kind CanonicalInnerColumnTypeStringKind `json:"kind,omitempty"`
} `json:"String,omitempty"`
Timestamp *struct{} `json:"Timestamp,omitempty"`
TimestampTz *struct{} `json:"TimestampTz,omitempty"`
Interval *struct{} `json:"Interval,omitempty"`
Integer *struct{} `json:"Integer,omitempty"`
Float *struct{} `json:"Float,omitempty"`
BitFlag *struct {
Values orderedmap.OrderedMap[string, int64] `json:"values"`
} `json:"BitFlag,omitempty"`
Boolean *struct{} `json:"Boolean,omitempty"`
Json *struct{} `json:"Json,omitempty"`
}

type CanonicalInnerColumnTypeStringKind struct {
Expand All @@ -75,26 +87,6 @@ type CanonicalInnerColumnTypeStringKind struct {
Modifier *struct{} `json:"Modifier,omitempty"`
}

type CanonicalInnerColumnType struct {
Uuid *struct{} `json:"Uuid,omitempty"`
String *struct {
MinLength *int `json:"min_length,omitempty"`
MaxLength *int `json:"max_length,omitempty"`
AllowedValues []string `json:"allowed_values,omitempty"`
Kind CanonicalInnerColumnTypeStringKind `json:"kind,omitempty"`
} `json:"String,omitempty"`
Timestamp *struct{} `json:"Timestamp,omitempty"`
TimestampTz *struct{} `json:"TimestampTz,omitempty"`
Interval *struct{} `json:"Interval,omitempty"`
Integer *struct{} `json:"Integer,omitempty"`
Float *struct{} `json:"Float,omitempty"`
BitFlag *struct {
Values orderedmap.OrderedMap[string, int64] `json:"values"`
} `json:"BitFlag,omitempty"`
Boolean *struct{} `json:"Boolean,omitempty"`
Json *struct{} `json:"Json,omitempty"`
}

type CanonicalColumnSuggestion struct {
Static *struct {
Suggestions []string `json:"suggestions"`
Expand Down

0 comments on commit 24ae5ea

Please sign in to comment.