Skip to content

Commit 7330521

Browse files
qiaojunfengtanmaykm
authored andcommitted
Fix Julia template for binary string (OpenAPITools#20355)
* Fix Julia template for binary format * Update julia samples * fix missing check for the isBinary flag Fix missing check for the isBinary flag in some places of the templates for julialang. The code would now be generated as Vector{UInt8} uniformly for binary strings. Binary strings that are also marked as files get generated as `String` data type on the client. That is because the Julia client expects a file name to be passed there. * Fix Julia template for file * Update julia samples --------- Co-authored-by: tan <[email protected]>
1 parent f417969 commit 7330521

File tree

13 files changed

+60
-60
lines changed

13 files changed

+60
-60
lines changed

modules/openapi-generator/src/main/resources/julia-client/api.mustache

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const _returntypes_{{operationId}}_{{classname}} = Dict{Regex,Type}(
2222
{{/responses}}
2323
)
2424

25-
function _oacinternal_{{operationId}}(_api::{{classname}}{{#allParams}}{{#required}}, {{paramName}}::{{#dataType}}{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/dataType}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}} _mediaType=nothing)
25+
function _oacinternal_{{operationId}}(_api::{{classname}}{{#allParams}}{{#required}}, {{paramName}}::{{#dataType}}{{#isBinary}}{{#isFile}}{{dataType}}{{/isFile}}{{^isFile}}Vector{UInt8}{{/isFile}}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/dataType}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}} _mediaType=nothing)
2626
{{#allParams}}
2727
{{#hasValidation}}
2828
{{#maxLength}}
@@ -61,7 +61,7 @@ function _oacinternal_{{operationId}}(_api::{{classname}}{{#allParams}}{{#requir
6161
OpenAPI.Clients.set_param(_ctx.form, "{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}", {{paramName}}{{#isListContainer}}; collection_format="{{collectionFormat}}"{{/isListContainer}}) # type {{dataType}}
6262
{{/isFile}}
6363
{{#isFile}}
64-
OpenAPI.Clients.set_param(_ctx.file, "{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}", {{paramName}}) # type {{#dataType}}{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/dataType}}
64+
OpenAPI.Clients.set_param(_ctx.file, "{{#lambda.escapeDollar}}{{baseName}}{{/lambda.escapeDollar}}", {{paramName}}) # type {{#dataType}}{{#isBinary}}{{#isFile}}{{dataType}}{{/isFile}}{{^isFile}}Vector{UInt8}{{/isFile}}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/dataType}}
6565
{{/isFile}}
6666
{{/formParams}}
6767
OpenAPI.Clients.set_header_accept(_ctx, [{{#produces}}"{{{mediaType}}}", {{/produces}}])
@@ -74,17 +74,17 @@ end
7474
{{/summary.length}}{{#notes.length}}{{{notes}}}
7575

7676
{{/notes.length}}Params:
77-
{{#allParams}}- {{paramName}}::{{dataType}}{{#required}} (required){{/required}}
77+
{{#allParams}}- {{paramName}}::{{#isBinary}}{{#isFile}}{{dataType}}{{/isFile}}{{^isFile}}Vector{UInt8}{{/isFile}}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{#required}} (required){{/required}}
7878
{{/allParams}}
7979

8080
Return: {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Nothing{{/returnType}}, OpenAPI.Clients.ApiResponse
8181
"""
82-
function {{operationId}}(_api::{{classname}}{{#allParams}}{{#required}}, {{paramName}}::{{dataType}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}} _mediaType=nothing)
82+
function {{operationId}}(_api::{{classname}}{{#allParams}}{{#required}}, {{paramName}}::{{#isBinary}}{{#isFile}}{{dataType}}{{/isFile}}{{^isFile}}Vector{UInt8}{{/isFile}}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}} _mediaType=nothing)
8383
_ctx = _oacinternal_{{operationId}}(_api{{#allParams}}{{#required}}, {{paramName}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}={{paramName}},{{/required}}{{/allParams}} _mediaType=_mediaType)
8484
return OpenAPI.Clients.exec(_ctx)
8585
end
8686

87-
function {{operationId}}(_api::{{classname}}, response_stream::Channel{{#allParams}}{{#required}}, {{paramName}}::{{dataType}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}} _mediaType=nothing)
87+
function {{operationId}}(_api::{{classname}}, response_stream::Channel{{#allParams}}{{#required}}, {{paramName}}::{{#isBinary}}{{#isFile}}{{dataType}}{{/isFile}}{{^isFile}}Vector{UInt8}{{/isFile}}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}} _mediaType=nothing)
8888
_ctx = _oacinternal_{{operationId}}(_api{{#allParams}}{{#required}}, {{paramName}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}={{paramName}},{{/required}}{{/allParams}} _mediaType=_mediaType)
8989
return OpenAPI.Clients.exec(_ctx, response_stream)
9090
end

modules/openapi-generator/src/main/resources/julia-client/api_doc.mustache

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ Method | HTTP request | Description
2323
Name | Type | Description | Notes
2424
------------- | ------------- | ------------- | -------------
2525
**_api** | **{{classname}}** | API context | {{/-last}}{{/allParams}}{{#allParams}}{{#required}}
26-
**{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/required}}{{/allParams}}{{#hasOptionalParams}}
26+
**{{paramName}}** | {{#isPrimitiveType}}**{{#isBinary}}{{#isFile}}{{dataType}}{{/isFile}}{{^isFile}}Vector{UInt8}{{/isFile}}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{#isFile}}**{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isFile}}{{/isPrimitiveType}} | {{description}} |{{/required}}{{/allParams}}{{#hasOptionalParams}}
2727

2828
### Optional Parameters
2929
{{#allParams}}{{#-last}}
3030
Name | Type | Description | Notes
3131
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}{{#allParams}}{{^required}}
32-
**{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/required}}{{/allParams}}{{/hasOptionalParams}}
32+
**{{paramName}}** | {{#isPrimitiveType}}**{{#isBinary}}{{#isFile}}{{dataType}}{{/isFile}}{{^isFile}}Vector{UInt8}{{/isFile}}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{#isFile}}**{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isFile}}{{/isPrimitiveType}} | {{description}} | {{^isBinary}}{{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/isBinary}}{{/required}}{{/allParams}}{{/hasOptionalParams}}
3333

3434
### Return type
3535

modules/openapi-generator/src/main/resources/julia-server/api_doc.mustache

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111
{{#operations}}
1212
{{#operation}}
1313
# **{{{operationId}}}**
14-
> {{operationId}}(req::HTTP.Request{{#allParams}}{{#required}}, {{paramName}}::{{dataType}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}}) -> {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Nothing{{/returnType}}
14+
> {{operationId}}(req::HTTP.Request{{#allParams}}{{#required}}, {{paramName}}::{{#dataType}}{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/dataType}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}}) -> {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Nothing{{/returnType}}
1515

1616
{{{summary}}}{{#notes}}
1717

@@ -22,13 +22,13 @@ Method | HTTP request | Description
2222
Name | Type | Description | Notes
2323
------------- | ------------- | ------------- | -------------
2424
**req** | **HTTP.Request** | The HTTP Request object | {{/-last}}{{/allParams}}{{#allParams}}{{#required}}
25-
**{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/required}}{{/allParams}}{{#hasOptionalParams}}
25+
**{{paramName}}** | {{#isPrimitiveType}}**{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{#isFile}}**{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isFile}}{{/isPrimitiveType}}| {{description}} |{{/required}}{{/allParams}}{{#hasOptionalParams}}
2626

2727
### Optional Parameters
2828
{{#allParams}}{{#-last}}
2929
Name | Type | Description | Notes
3030
------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}{{#allParams}}{{^required}}
31-
**{{paramName}}** | {{#isFile}}**{{dataType}}**{{/isFile}}{{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}}| {{description}} | {{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/required}}{{/allParams}}{{/hasOptionalParams}}
31+
**{{paramName}}** | {{#isPrimitiveType}}**{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isPrimitiveType}}{{^isPrimitiveType}}{{^isFile}}[**{{dataType}}**]({{baseType}}.md){{/isFile}}{{#isFile}}**{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}**{{/isFile}}{{/isPrimitiveType}}| {{description}} | {{^isBinary}}{{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/isBinary}}{{/required}}{{/allParams}}{{/hasOptionalParams}}
3232

3333
### Return type
3434

modules/openapi-generator/src/main/resources/julia-server/server.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ The following server methods must be implemented:
1111
{{#operation}}
1212
- **{{operationId}}**
1313
- *invocation:* {{httpMethod}} {{{path}}}
14-
- *signature:* {{operationId}}(req::HTTP.Request{{#allParams}}{{#required}}, {{paramName}}::{{dataType}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}}) -> {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Nothing{{/returnType}}
14+
- *signature:* {{operationId}}(req::HTTP.Request{{#allParams}}{{#required}}, {{paramName}}::{{#isBinary}}Vector{UInt8}{{/isBinary}}{{^isBinary}}{{dataType}}{{/isBinary}}{{/required}}{{/allParams}};{{#allParams}}{{^required}} {{paramName}}=nothing,{{/required}}{{/allParams}}) -> {{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Nothing{{/returnType}}
1515
{{/operation}}
1616
{{/operations}}
1717
{{/apis}}

samples/client/petstore/julia/docs/FakeApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test uuid default value
2020
Name | Type | Description | Notes
2121
------------- | ------------- | ------------- | -------------
2222
**_api** | **FakeApi** | API context |
23-
**uuid_parameter** | **String**| test uuid default value | [default to nothing]
23+
**uuid_parameter** | **String** | test uuid default value |
2424

2525
### Return type
2626

samples/client/petstore/julia/docs/PetApi.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Add a new pet to the store
2727
Name | Type | Description | Notes
2828
------------- | ------------- | ------------- | -------------
2929
**_api** | **PetApi** | API context |
30-
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
30+
**pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store |
3131

3232
### Return type
3333

@@ -57,13 +57,13 @@ Deletes a pet
5757
Name | Type | Description | Notes
5858
------------- | ------------- | ------------- | -------------
5959
**_api** | **PetApi** | API context |
60-
**pet_id** | **Int64**| Pet id to delete | [default to nothing]
60+
**pet_id** | **Int64** | Pet id to delete |
6161

6262
### Optional Parameters
6363

6464
Name | Type | Description | Notes
6565
------------- | ------------- | ------------- | -------------
66-
**api_key** | **String**| | [default to nothing]
66+
**api_key** | **String** | | [default to nothing]
6767

6868
### Return type
6969

@@ -93,7 +93,7 @@ Multiple status values can be provided with comma separated strings
9393
Name | Type | Description | Notes
9494
------------- | ------------- | ------------- | -------------
9595
**_api** | **PetApi** | API context |
96-
**status** | [**Vector{String}**](String.md)| Status values that need to be considered for filter | [default to nothing]
96+
**status** | [**Vector{String}**](String.md) | Status values that need to be considered for filter |
9797

9898
### Return type
9999

@@ -123,7 +123,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
123123
Name | Type | Description | Notes
124124
------------- | ------------- | ------------- | -------------
125125
**_api** | **PetApi** | API context |
126-
**tags** | [**Vector{String}**](String.md)| Tags to filter by | [default to nothing]
126+
**tags** | [**Vector{String}**](String.md) | Tags to filter by |
127127

128128
### Return type
129129

@@ -153,7 +153,7 @@ Returns a single pet
153153
Name | Type | Description | Notes
154154
------------- | ------------- | ------------- | -------------
155155
**_api** | **PetApi** | API context |
156-
**pet_id** | **Int64**| ID of pet to return | [default to nothing]
156+
**pet_id** | **Int64** | ID of pet to return |
157157

158158
### Return type
159159

@@ -183,7 +183,7 @@ Update an existing pet
183183
Name | Type | Description | Notes
184184
------------- | ------------- | ------------- | -------------
185185
**_api** | **PetApi** | API context |
186-
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
186+
**pet** | [**Pet**](Pet.md) | Pet object that needs to be added to the store |
187187

188188
### Return type
189189

@@ -213,14 +213,14 @@ Updates a pet in the store with form data
213213
Name | Type | Description | Notes
214214
------------- | ------------- | ------------- | -------------
215215
**_api** | **PetApi** | API context |
216-
**pet_id** | **Int64**| ID of pet that needs to be updated | [default to nothing]
216+
**pet_id** | **Int64** | ID of pet that needs to be updated |
217217

218218
### Optional Parameters
219219

220220
Name | Type | Description | Notes
221221
------------- | ------------- | ------------- | -------------
222-
**name** | **String**| Updated name of the pet | [default to nothing]
223-
**status** | **String**| Updated status of the pet | [default to nothing]
222+
**name** | **String** | Updated name of the pet | [default to nothing]
223+
**status** | **String** | Updated status of the pet | [default to nothing]
224224

225225
### Return type
226226

@@ -250,14 +250,14 @@ uploads an image
250250
Name | Type | Description | Notes
251251
------------- | ------------- | ------------- | -------------
252252
**_api** | **PetApi** | API context |
253-
**pet_id** | **Int64**| ID of pet to update | [default to nothing]
253+
**pet_id** | **Int64** | ID of pet to update |
254254

255255
### Optional Parameters
256256

257257
Name | Type | Description | Notes
258258
------------- | ------------- | ------------- | -------------
259-
**additional_metadata** | **String**| Additional data to pass to server | [default to nothing]
260-
**file** | **String****String**| file to upload | [default to nothing]
259+
**additional_metadata** | **String** | Additional data to pass to server | [default to nothing]
260+
**file** | **String** | file to upload |
261261

262262
### Return type
263263

samples/client/petstore/julia/docs/StoreApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
2323
Name | Type | Description | Notes
2424
------------- | ------------- | ------------- | -------------
2525
**_api** | **StoreApi** | API context |
26-
**order_id** | **String**| ID of the order that needs to be deleted | [default to nothing]
26+
**order_id** | **String** | ID of the order that needs to be deleted |
2727

2828
### Return type
2929

@@ -79,7 +79,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
7979
Name | Type | Description | Notes
8080
------------- | ------------- | ------------- | -------------
8181
**_api** | **StoreApi** | API context |
82-
**order_id** | **Int64**| ID of pet that needs to be fetched | [default to nothing]
82+
**order_id** | **Int64** | ID of pet that needs to be fetched |
8383

8484
### Return type
8585

@@ -109,7 +109,7 @@ Place an order for a pet
109109
Name | Type | Description | Notes
110110
------------- | ------------- | ------------- | -------------
111111
**_api** | **StoreApi** | API context |
112-
**order** | [**Order**](Order.md)| order placed for purchasing the pet |
112+
**order** | [**Order**](Order.md) | order placed for purchasing the pet |
113113

114114
### Return type
115115

samples/client/petstore/julia/docs/UserApi.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This can only be done by the logged in user.
2727
Name | Type | Description | Notes
2828
------------- | ------------- | ------------- | -------------
2929
**_api** | **UserApi** | API context |
30-
**user** | [**User**](User.md)| Created user object |
30+
**user** | [**User**](User.md) | Created user object |
3131

3232
### Return type
3333

@@ -57,7 +57,7 @@ Creates list of users with given input array
5757
Name | Type | Description | Notes
5858
------------- | ------------- | ------------- | -------------
5959
**_api** | **UserApi** | API context |
60-
**user** | [**Vector{User}**](User.md)| List of user object |
60+
**user** | [**Vector{User}**](User.md) | List of user object |
6161

6262
### Return type
6363

@@ -87,7 +87,7 @@ Creates list of users with given input array
8787
Name | Type | Description | Notes
8888
------------- | ------------- | ------------- | -------------
8989
**_api** | **UserApi** | API context |
90-
**user** | [**Vector{User}**](User.md)| List of user object |
90+
**user** | [**Vector{User}**](User.md) | List of user object |
9191

9292
### Return type
9393

@@ -117,7 +117,7 @@ This can only be done by the logged in user.
117117
Name | Type | Description | Notes
118118
------------- | ------------- | ------------- | -------------
119119
**_api** | **UserApi** | API context |
120-
**username** | **String**| The name that needs to be deleted | [default to nothing]
120+
**username** | **String** | The name that needs to be deleted |
121121

122122
### Return type
123123

@@ -147,7 +147,7 @@ Get user by user name
147147
Name | Type | Description | Notes
148148
------------- | ------------- | ------------- | -------------
149149
**_api** | **UserApi** | API context |
150-
**username** | **String**| The name that needs to be fetched. Use user1 for testing. | [default to nothing]
150+
**username** | **String** | The name that needs to be fetched. Use user1 for testing. |
151151

152152
### Return type
153153

@@ -177,8 +177,8 @@ Logs user into the system
177177
Name | Type | Description | Notes
178178
------------- | ------------- | ------------- | -------------
179179
**_api** | **UserApi** | API context |
180-
**username** | **String**| The user name for login | [default to nothing]
181-
**password** | **String**| The password for login in clear text | [default to nothing]
180+
**username** | **String** | The user name for login |
181+
**password** | **String** | The password for login in clear text |
182182

183183
### Return type
184184

@@ -234,8 +234,8 @@ This can only be done by the logged in user.
234234
Name | Type | Description | Notes
235235
------------- | ------------- | ------------- | -------------
236236
**_api** | **UserApi** | API context |
237-
**username** | **String**| name that need to be deleted | [default to nothing]
238-
**user** | [**User**](User.md)| Updated user object |
237+
**username** | **String** | name that need to be deleted |
238+
**user** | [**User**](User.md) | Updated user object |
239239

240240
### Return type
241241

samples/client/petstore/julia/src/apis/api_PetApi.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function _oacinternal_upload_file(_api::PetApi, pet_id::Int64; additional_metada
248248
_ctx = OpenAPI.Clients.Ctx(_api.client, "POST", _returntypes_upload_file_PetApi, "/pet/{petId}/uploadImage", ["petstore_auth", ])
249249
OpenAPI.Clients.set_param(_ctx.path, "petId", pet_id) # type Int64
250250
OpenAPI.Clients.set_param(_ctx.form, "additionalMetadata", additional_metadata) # type String
251-
OpenAPI.Clients.set_param(_ctx.file, "file", file) # type Vector{UInt8}
251+
OpenAPI.Clients.set_param(_ctx.file, "file", file) # type String
252252
OpenAPI.Clients.set_header_accept(_ctx, ["application/json", ])
253253
OpenAPI.Clients.set_header_content_type(_ctx, (_mediaType === nothing) ? ["multipart/form-data", ] : [_mediaType])
254254
return _ctx

samples/server/petstore/julia/docs/FakeApi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test uuid default value
1919
Name | Type | Description | Notes
2020
------------- | ------------- | ------------- | -------------
2121
**req** | **HTTP.Request** | The HTTP Request object |
22-
**uuid_parameter** | **String**| test uuid default value | [default to nothing]
22+
**uuid_parameter** | **String**| test uuid default value |
2323

2424
### Return type
2525

0 commit comments

Comments
 (0)