mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 02:46:23 +00:00
Add OAS3 allowEmptyValue for query params (#10312)
* add the special case of empty query parameters to the fake API
This commit is contained in:
@@ -816,7 +816,7 @@ No authorization required
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, opts)
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, opts)
|
||||
|
||||
|
||||
|
||||
@@ -833,10 +833,11 @@ let ioutil = ["null"]; // [String] |
|
||||
let http = ["null"]; // [String] |
|
||||
let url = ["null"]; // [String] |
|
||||
let context = ["null"]; // [String] |
|
||||
let allowEmpty = "allowEmpty_example"; // String |
|
||||
let opts = {
|
||||
'language': {key: "null"} // {String: String} |
|
||||
};
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, opts, (error, data, response) => {
|
||||
apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, opts, (error, data, response) => {
|
||||
if (error) {
|
||||
console.error(error);
|
||||
} else {
|
||||
@@ -855,6 +856,7 @@ Name | Type | Description | Notes
|
||||
**http** | [**[String]**](String.md)| |
|
||||
**url** | [**[String]**](String.md)| |
|
||||
**context** | [**[String]**](String.md)| |
|
||||
**allowEmpty** | **String**| |
|
||||
**language** | [**{String: String}**](String.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
Reference in New Issue
Block a user