We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 086af5f commit 79148cbCopy full SHA for 79148cb
1 file changed
infra/conf/cfgcommon/types/listable.go
@@ -9,7 +9,7 @@ import (
9
10
// Listable allows a field to be unmarshalled from a single object or a list of objects.
11
// If the json input is a single object, it will be stored as a slice with one element.
12
-// If the json input is null or empty, it will be nil.
+// If the json input is null or empty or a single empty object, it will be nil.
13
type Listable[T any] []T
14
15
func (l *Listable[T]) UnmarshalJSON(data []byte) error {
0 commit comments