Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
code optimization
  • Loading branch information
sdghchj authored Mar 23, 2020
1 parent 5ba88c8 commit 187ec48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ func (nested *nestedField) fillNestedSchema(response *spec.Response, ref spec.Re
Properties: props,
},
}
response.Schema.AllOf = []spec.Schema{spec.Schema{SchemaProps: spec.SchemaProps{Ref: ref}}, nestedSpec}
response.Schema.AllOf = []spec.Schema{{SchemaProps: spec.SchemaProps{Ref: ref}}, nestedSpec}
}

var nestedObjectPattern = regexp.MustCompile(`^([\w\-\.\/]+)\{(.*)=([^\[\]]*)\}$`)
Expand Down

0 comments on commit 187ec48

Please sign in to comment.