make a little update

pull/144/head
Henrique Dias 2016-08-22 22:45:29 +01:00
parent de984c3037
commit c29d066842
1 changed files with 3 additions and 3 deletions

View File

@ -193,10 +193,10 @@ func handleFlatValues(content interface{}, parent *Block, name string) *Block {
c := new(Block)
c.Parent = parent
switch reflect.ValueOf(content).Kind() {
case reflect.Bool:
switch content.(type) {
case bool:
c.Type = "boolean"
case reflect.Int, reflect.Float32, reflect.Float64:
case int, float32, float64:
c.Type = "number"
default:
c.Type = "string"