diff --git a/operation.go b/operation.go index 20b740b65..33da3637a 100644 --- a/operation.go +++ b/operation.go @@ -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{spec.Schema{SchemaProps: spec.SchemaProps{Ref: ref}}, nestedSpec} } var nestedObjectPattern = regexp.MustCompile(`^([\w\-\.\/]+)\{(.*)=([^\[\]]*)\}$`)