File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/elm Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ basePath =
1717{ -
1818 {{notes} }
1919-}
20- { {operationId} } : { {#pathParams} }{ {dataType} } -> { {/pathParams} }{ {#bodyParam} }{ {dataType} } -> { {/bodyParam} }Http.Request { {#responses} }{ {#-first} }{ {^dataType} }(){ {/dataType} }{ {#isMapContainer} }(Dict.Dict String { {/isMapContainer} }{ {#isListContainer} }(List { {/isListContainer} }{ {dataType} }{ {#isListContainer} }){ {/isListContainer} }{ {#isMapContainer} }){ {/isMapContainer} }{ {/-first} }{ {/responses} }
20+ { {operationId} } : { {#pathParams} }{ {dataType} } -> { {/pathParams} }{ {#bodyParam} }{ {dataType} } -> { {/bodyParam} }Http.Request { {^responses } }() { {/responses } } { { #responses} }{ {#-first} }{ {^dataType} }(){ {/dataType} }{ {#isMapContainer} }(Dict.Dict String { {/isMapContainer} }{ {#isListContainer} }(List { {/isListContainer} }{ {dataType} }{ {#isListContainer} }){ {/isListContainer} }{ {#isMapContainer} }){ {/isMapContainer} }{ {/-first} }{ {/responses} }
2121{ {operationId} } { {#pathParams} }{ {paramName} } { {/pathParams} }{ {#bodyParam} }model { {/bodyParam} }=
2222 { method = " {{httpMethod}}"
2323 , url = basePath ++ {{{path} }}
2424 , headers = []
2525 , body = { {#bodyParam} }Http.jsonBody <| { {vendorExtensions.x-encoder} } model{ {/bodyParam} }{ {^bodyParam} }Http.emptyBody{ {/bodyParam} }
26- , expect = { {#responses} }{ {#-first} }{ {^dataType} }Http.expectStringResponse (\_ -> Ok ()){ {/dataType} }{ {#dataType} }Http.expectJson { {#isMapContainer} }(Decode.dict { {/isMapContainer} }{ {#isListContainer} }(Decode.list { {/isListContainer} }{ {#vendorExtensions} }{ {x-decoder} }{ {/vendorExtensions} }{ {#isListContainer} }){ {/isListContainer} }{ {#isMapContainer} }){ {/isMapContainer} }{ {/dataType} }{ {/-first} }{ {/responses} }
26+ , expect = { {^responses } }Http.expectStringResponse (\_ -> Ok ()) { {/responses } } { { #responses} }{ {#-first} }{ {^dataType} }Http.expectStringResponse (\_ -> Ok ()){ {/dataType} }{ {#dataType} }Http.expectJson { {#isMapContainer} }(Decode.dict { {/isMapContainer} }{ {#isListContainer} }(Decode.list { {/isListContainer} }{ {#vendorExtensions} }{ {x-decoder} }{ {/vendorExtensions} }{ {#isListContainer} }){ {/isListContainer} }{ {#isMapContainer} }){ {/isMapContainer} }{ {/dataType} }{ {/-first} }{ {/responses} }
2727 , timeout = Just 30000
2828 , withCredentials = False
2929 }
You can’t perform that action at this time.
0 commit comments