Skip to content

Commit

Permalink
fix: resolve nested type Value error on interface{} #3
Browse files Browse the repository at this point in the history
  • Loading branch information
kaptinlin committed Jun 27, 2024
1 parent 87445b6 commit 53d46cc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
12 changes: 6 additions & 6 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 15 additions & 14 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func getDataType(v interface{}) string {
return "string"
case []interface{}:
return "array"
case []bool, []json.Number, []float32, []float64, []int, []int8, []int16, []int32, []int64, []uint, []uint8, []uint16, []uint32, []uint64, []string:
return "array"
case map[string]interface{}:
return "object"
default:
Expand Down

0 comments on commit 53d46cc

Please sign in to comment.