Skip to content

Commit

Permalink
Fix invalid type
Browse files Browse the repository at this point in the history
The generated type was []Interface{} when it should be lowercase.
  • Loading branch information
bhenderson committed Feb 11, 2019
1 parent ee81dd1 commit 19d733f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion surface/model_openapiv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func (b *OpenAPI3Builder) typeForSchema(schema *openapiv3.Schema) (kind FieldKin
} else if a[0].GetSchema().Type == "string" {
return FieldKind_ARRAY, "string", format
} else if a[0].GetSchema().Type == "object" {
return FieldKind_ARRAY, "interface{}", format
return FieldKind_ARRAY, "object", format
}
}
}
Expand Down

0 comments on commit 19d733f

Please sign in to comment.