File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
modules/openapi-generator/src/main/resources/scala-sttp4-jsoniter Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ case class {{classname}}[Auth <: {{invokerPackage}}.Authorization] private (base
6767 {{>paramMultipartCreation}}{{/formParams}}
6868 ).flatten){{/isMultipart}}{{/formParams.0}}{{#bodyParam}}
6969 {{^isFile}}.body(asJson({{paramName}})){{/isFile}}{{#isFile}}.fileBody({{paramName}}){{/isFile}}{{/bodyParam}}
70- .response({{#separateErrorChannel}}{{^returnType}}asString.mapWithMetadata(ResponseAs.deserializeRightWithError(_ => Right(()))){{/returnType}}{{#fnHandleDownload}}{{#returnType}}asJson[{{>operationReturnType}}]{{/returnType}}{{/fnHandleDownload}}{{/separateErrorChannel}}{{^separateErrorChannel}}{{^returnType}}asString.mapWithMetadata(ResponseAs.deserializeRightWithError(_ => Right(()))).getRight {{/returnType}}{{#returnType}}asJson[{{>operationReturnType}}].getRight {{/returnType}}{{/separateErrorChannel}})
70+ .response({{#separateErrorChannel}}{{^returnType}}asString.mapWithMetadata(ResponseAs.deserializeRightWithError(_ => Right(()))){{/returnType}}{{#fnHandleDownload}}{{#returnType}}asJson[{{>operationReturnType}}]{{/returnType}}{{/fnHandleDownload}}{{/separateErrorChannel}}{{^separateErrorChannel}}{{^returnType}}asString.mapWithMetadata(ResponseAs.deserializeRightWithError(_ => Right(()))).orFail {{/returnType}}{{#returnType}}asJson[{{>operationReturnType}}].orFail {{/returnType}}{{/separateErrorChannel}})
7171
7272{{/operation}}
7373{{/operations}}
You can’t perform that action at this time.
0 commit comments