Skip to content

Commit

Permalink
Merge pull request go-openapi#118 from sokolvano/master
Browse files Browse the repository at this point in the history
Fix SimpleArrayParam constructor bug
  • Loading branch information
casualjim committed Jul 8, 2020
2 parents f387d8f + ac54bf8 commit 02ee02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func FileParam(name string) *Parameter {
func SimpleArrayParam(name, tpe, fmt string) *Parameter {
return &Parameter{ParamProps: ParamProps{Name: name},
SimpleSchema: SimpleSchema{Type: jsonArray, CollectionFormat: "csv",
Items: &Items{SimpleSchema: SimpleSchema{Type: "string", Format: fmt}}}}
Items: &Items{SimpleSchema: SimpleSchema{Type: tpe, Format: fmt}}}}
}

// ParamRef creates a parameter that's a json reference
Expand Down

0 comments on commit 02ee02b

Please sign in to comment.