Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/OpenApi/Config.elm
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ effectTypeToPackage effectType =
Common.ElmHttp

DillonkearnsElmPagesTaskRecord ->
Common.ElmHttp
Common.DillonkearnsElmPages

DillonkearnsElmPagesTask ->
Common.DillonkearnsElmPages
Expand Down
4 changes: 2 additions & 2 deletions src/OpenApi/Generate.elm
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ dillonkearnsElmPagesBackendTask ({ toMsg, method, functionName } as operationUti
, ( "timeoutInMs", Elm.Annotation.maybe Elm.Annotation.int )
]
)
(Gen.BackendTask.Http.annotation_.expect (Elm.Annotation.var "a"))
(Gen.BackendTask.Http.annotation_.expect successAnnotation)
)
, specificExpect = specificExpect
}
Expand All @@ -1175,7 +1175,7 @@ dillonkearnsElmPagesBackendTask ({ toMsg, method, functionName } as operationUti
)
, ( OpenApi.Config.DillonkearnsElmPagesTaskRecord
, \{ taskArg, recordAnnotation, specificExpect } ->
( functionName
( functionName ++ "Record"
, Elm.fn
(Elm.Arg.var "config")
(\config -> Elm.tuple (taskArg config) (specificExpect <| toMsg config))
Expand Down
Loading