[Inline model resolver] various improvements (#12293)

* better handling of requestbody in the inline resolver

* remove commented code

* better request body naming

* fix unique naming

* minor code format change

* removed additional underscore from names, fix test

* more fixes, update tests

* fix all tests

* undo changes to default codegen

* update samples

* update python tests

* add new files

* update samples
This commit is contained in:
William Cheng
2022-05-10 17:13:57 +08:00
committed by GitHub
parent 4d0da694ba
commit ad3b5f7045
186 changed files with 9764 additions and 8111 deletions

View File

@@ -80,7 +80,7 @@ No authorization required
<a name="multipartmixed"></a>
# **MultipartMixed**
> void MultipartMixed (MultipartMixedStatus status, System.IO.Stream file, MultipartMixedMarker marker = null)
> void MultipartMixed (MultipartMixedStatus status, System.IO.Stream file, MultipartMixedRequestMarker marker = null)
@@ -105,7 +105,7 @@ namespace Example
var apiInstance = new MultipartApi(config);
var status = (MultipartMixedStatus) "ALLOWED"; // MultipartMixedStatus |
var file = new System.IO.MemoryStream(System.IO.File.ReadAllBytes("/path/to/file.txt")); // System.IO.Stream | a file
var marker = new MultipartMixedMarker(); // MultipartMixedMarker | (optional)
var marker = new MultipartMixedRequestMarker(); // MultipartMixedRequestMarker | (optional)
try
{
@@ -128,7 +128,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**status** | **MultipartMixedStatus**| |
**file** | **System.IO.Stream****System.IO.Stream**| a file |
**marker** | [**MultipartMixedMarker**](MultipartMixedMarker.md)| | [optional]
**marker** | [**MultipartMixedRequestMarker**](MultipartMixedRequestMarker.md)| | [optional]
### Return type

View File

@@ -0,0 +1,10 @@
# Org.OpenAPITools.Model.MultipartArrayRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Files** | **List&lt;System.IO.Stream&gt;** | Many files | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,12 @@
# Org.OpenAPITools.Model.MultipartMixedRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Status** | **MultipartMixedStatus** | |
**Marker** | [**MultipartMixedRequestMarker**](MultipartMixedRequestMarker.md) | | [optional]
**File** | **System.IO.Stream** | a file |
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,11 @@
# Org.OpenAPITools.Model.MultipartMixedRequestMarker
additional object
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **string** | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@@ -0,0 +1,10 @@
# Org.OpenAPITools.Model.MultipartSingleRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**File** | **System.IO.Stream** | One file | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)