You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/lib/configreader/reader.go
+32-25Lines changed: 32 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -79,17 +79,17 @@ type StructFieldValidation struct {
79
79
typeStructValidationstruct {
80
80
StructFieldValidations []*StructFieldValidation
81
81
Requiredbool
82
-
AllowNullbool
83
-
DefualtNilbool// If this struct is nested and it's key is not defined, set it to nil instead of defaults or erroring (e.g. if any subfields are required)
82
+
AllowExplicitNullbool
83
+
DefaultNilbool// If this struct is nested and its key is not defined, set it to nil instead of defaults or erroring (e.g. if any subfields are required)
84
84
ShortCircuitbool
85
85
AllowExtraFieldsbool
86
86
}
87
87
88
88
typeStructListValidationstruct {
89
-
StructValidation*StructValidation
90
-
Requiredbool
91
-
AllowNullbool
92
-
ShortCircuitbool
89
+
StructValidation*StructValidation
90
+
Requiredbool
91
+
AllowExplicitNullbool
92
+
ShortCircuitbool
93
93
}
94
94
95
95
typeInterfaceStructValidationstruct {
@@ -99,7 +99,7 @@ type InterfaceStructValidation struct {
99
99
ParsedInterfaceStructTypesmap[interface{}]*InterfaceStructType// must specify Parser if using this
100
100
Parserfunc(string) (interface{}, error)
101
101
Requiredbool
102
-
AllowNullbool
102
+
AllowExplicitNullbool
103
103
ShortCircuitbool
104
104
AllowExtraFieldsbool
105
105
}
@@ -112,7 +112,7 @@ type InterfaceStructType struct {
0 commit comments