Skip to content

Commit

Permalink
Fixed client constructor parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
xperiandri committed Jan 20, 2021
1 parent 4e002c9 commit cce1ac0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SwaggerProvider.DesignTime/v2/OperationCompiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ type OperationCompiler (schema:SwaggerObject, defCompiler:DefinitionCompiler, ig
invokeCode = (fun args -> <@@ () @@>),
BaseConstructorCall = fun args ->
let httpClient = <@ RuntimeHelpers.getDefaultHttpClient defaultHost @>
let args' = args @ [httpClient]
let args' = args @ [ httpClient; <@@ null @@> ]
(baseCtor, args'))
] |> ty.AddMembers

Expand Down
2 changes: 1 addition & 1 deletion src/SwaggerProvider.DesignTime/v3/OperationCompiler.fs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ type OperationCompiler (schema:OpenApiDocument, defCompiler:DefinitionCompiler,
invokeCode = (fun args -> <@@ () @@>),
BaseConstructorCall = fun args ->
let httpClient = <@ RuntimeHelpers.getDefaultHttpClient defaultHost @>
let args' = args @ [httpClient]
let args' = args @ [ httpClient; <@@ null @@> ]
(baseCtor, args'))
] |> ty.AddMembers

Expand Down

0 comments on commit cce1ac0

Please sign in to comment.