diff --git a/generator/operation.go b/generator/operation.go
index <HASH>..<HASH> 100644
--- a/generator/operation.go
+++ b/generator/operation.go
@@ -488,6 +488,7 @@ func (b *codeGenOpBuilder) MakeOperation() (GenOperation, error) {
 		ExtraSchemes:         extraSchemes,
 		WithContext:          b.WithContext,
 		TimeoutName:          timeoutName,
+		Extensions:           operation.Extensions,
 	}, nil
 }
 
diff --git a/generator/structs.go b/generator/structs.go
index <HASH>..<HASH> 100644
--- a/generator/structs.go
+++ b/generator/structs.go
@@ -355,6 +355,8 @@ type GenOperation struct {
 	ConsumesMediaTypes []string
 	WithContext        bool
 	TimeoutName        string
+
+	Extensions         map[string]interface{}
 }
 
 // GenOperations represents a list of operations to generate
Add Swagger extensions to each Operation