forked from loafle/openapi-generator-original
[python-nextgen] add support for StrictBytes (#15365)
* add strictbyte support in python-nextgen client * update samples * use union of strictbytes, strictstr for backward compatibility
This commit is contained in:
@@ -313,6 +313,28 @@ paths:
|
||||
tags:
|
||||
- query
|
||||
x-accepts: text/plain
|
||||
/body/application/octetstream/binary:
|
||||
post:
|
||||
description: Test body parameter(s)
|
||||
operationId: test/body/application/octetstream/binary
|
||||
requestBody:
|
||||
content:
|
||||
application/octet-stream:
|
||||
schema:
|
||||
format: binary
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
type: string
|
||||
description: Successful operation
|
||||
summary: Test body parameter(s)
|
||||
tags:
|
||||
- body
|
||||
x-content-type: application/octet-stream
|
||||
x-accepts: text/plain
|
||||
/echo/body/Pet:
|
||||
post:
|
||||
description: Test body parameter(s)
|
||||
|
||||
@@ -43,6 +43,35 @@ public interface BodyApi extends ApiClient.Api {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
* Test body parameter(s)
|
||||
* @param body (optional)
|
||||
* @return String
|
||||
*/
|
||||
@RequestLine("POST /body/application/octetstream/binary")
|
||||
@Headers({
|
||||
"Content-Type: application/octet-stream",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
String testBodyApplicationOctetstreamBinary(File body);
|
||||
|
||||
/**
|
||||
* Test body parameter(s)
|
||||
* Similar to <code>testBodyApplicationOctetstreamBinary</code> but it also returns the http response headers .
|
||||
* Test body parameter(s)
|
||||
* @param body (optional)
|
||||
* @return A ApiResponse that wraps the response boyd and the http headers.
|
||||
*/
|
||||
@RequestLine("POST /body/application/octetstream/binary")
|
||||
@Headers({
|
||||
"Content-Type: application/octet-stream",
|
||||
"Accept: text/plain",
|
||||
})
|
||||
ApiResponse<String> testBodyApplicationOctetstreamBinaryWithHttpInfo(File body);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Test free form object
|
||||
* Test free form object
|
||||
|
||||
Reference in New Issue
Block a user