forked from loafle/openapi-generator-original
fix file parameter in header file (cpprest) (#130)
This commit is contained in:
parent
52af29f46d
commit
7c734445b2
@ -39,7 +39,7 @@ public:
|
|||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
pplx::task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}> {{operationId}}(
|
pplx::task<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}> {{operationId}}(
|
||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
{{^required}}boost::optional<{{/required}}{{{dataType}}}{{^required}}>{{/required}} {{paramName}}{{#hasMore}},{{/hasMore}}
|
{{^required}}boost::optional<{{/required}}{{#isFile}}std::shared_ptr<{{/isFile}}{{{dataType}}}{{#isFile}}>{{/isFile}}{{^required}}>{{/required}} {{paramName}}{{#hasMore}},{{/hasMore}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
);
|
);
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
|
@ -129,7 +129,7 @@ public:
|
|||||||
pplx::task<std::shared_ptr<ApiResponse>> uploadFile(
|
pplx::task<std::shared_ptr<ApiResponse>> uploadFile(
|
||||||
int64_t petId,
|
int64_t petId,
|
||||||
boost::optional<utility::string_t> additionalMetadata,
|
boost::optional<utility::string_t> additionalMetadata,
|
||||||
boost::optional<HttpContent> file
|
boost::optional<std::shared_ptr<HttpContent>> file
|
||||||
);
|
);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user