Skip to content

Commit

Permalink
Support input type is 'null' only
Browse files Browse the repository at this point in the history
  • Loading branch information
manabuishii committed Jul 27, 2018
1 parent 0f3ad23 commit 6b71424
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ func (input *Input) Flatten() []string {
flattened = append(flattened, fmt.Sprintf("%v", v))
}
case "null":
if len(input.Types) == 1 {
return flattened
}
switch input.Types[1].Type {
case "boolean":
if input.Provided != nil && input.Provided.Raw == false {
Expand Down

0 comments on commit 6b71424

Please sign in to comment.