Skip to content

Commit

Permalink
fix: generate array properties (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrd committed May 7, 2020
1 parent 4f94975 commit f08cb8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/codegen/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ func GenerateGoSchema(sref *openapi3.SchemaRef, path []string) (Schema, error) {
return Schema{}, errors.Wrap(err, "error generating type for array")
}
outSchema.GoType = "[]" + arrayType.TypeDecl()
outSchema.Properties = arrayType.Properties
case "integer":
// We default to int if format doesn't ask for something else.
if f == "int64" {
Expand Down

0 comments on commit f08cb8b

Please sign in to comment.