Skip to content

Commit

Permalink
feat: generate formData params via go struct (#770)
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Aug 12, 2020
1 parent b28321d commit 3ce6eb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operation.go
Expand Up @@ -167,12 +167,12 @@ func (operation *Operation) ParseParamComment(commentLine string, astFile *ast.F
param := createParameter(paramType, description, name, refType, required)

switch paramType {
case "path", "header", "formData":
case "path", "header":
switch objectType {
case ARRAY, OBJECT:
return fmt.Errorf("%s is not supported type for %s", refType, paramType)
}
case "query":
case "query", "formData":
switch objectType {
case ARRAY:
if !IsPrimitiveType(refType) {
Expand Down

0 comments on commit 3ce6eb2

Please sign in to comment.