schema: add test for nil string case
This commit is contained in:
parent
8e7fc240f9
commit
f269d4fc8c
|
@ -97,6 +97,15 @@ func TestMapFieldWriter(t *testing.T) {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"string nil": {
|
||||||
|
[]string{"string"},
|
||||||
|
nil,
|
||||||
|
false,
|
||||||
|
map[string]string{
|
||||||
|
"string": "",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
"list of resources": {
|
"list of resources": {
|
||||||
[]string{"listResource"},
|
[]string{"listResource"},
|
||||||
[]interface{}{
|
[]interface{}{
|
||||||
|
|
Loading…
Reference in New Issue