cloud66-oss / copper

A configuration file validator for Kubernetes.
https://help.cloud66.com/copper/
Apache License 2.0
274 stars 15 forks source link

Fix type conversion error when no validation error is present. #19

Open celalemre opened 5 years ago

celalemre commented 5 years ago

If validation succeeds, you still get an error like "interface {} is []interface {}, not []map[string]interface {}", to fix this I did a type check on the variable jsArray and returned the expected result based on that.