diff --git a/transformers/struct.go b/transformers/struct.go index e47b2610d2..e56723e89e 100644 --- a/transformers/struct.go +++ b/transformers/struct.go @@ -14,7 +14,7 @@ import ( "github.com/thoas/go-funk" ) -const maxJSONTypeSchemaDepth = 5 +const maxJSONTypeSchemaDepth = 4 type structTransformer struct { table *schema.Table diff --git a/transformers/struct_test.go b/transformers/struct_test.go index 63342b9f31..f2a926776a 100644 --- a/transformers/struct_test.go +++ b/transformers/struct_test.go @@ -601,7 +601,7 @@ func TestJSONTypeSchema(t *testing.T) { } `json:"level0"` }{}, want: map[string]string{ - "level0": `{"level1":{"level2":{"level3":{"level4":{"level5":{"level6":"json"}}}}}}`, + "level0": `{"level1":{"level2":{"level3":{"level4":{"level5":"json"}}}}}`, }, }, }