mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-17 00:21:19 +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:
@@ -1232,6 +1232,14 @@ paths:
|
||||
type: string
|
||||
type: object
|
||||
style: form
|
||||
- allowEmptyValue: true
|
||||
explode: true
|
||||
in: query
|
||||
name: allowEmpty
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
style: form
|
||||
responses:
|
||||
"200":
|
||||
description: Success
|
||||
|
||||
@@ -438,13 +438,14 @@ public interface FakeApi extends ApiClient.Api {
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param allowEmpty (required)
|
||||
* @param language (optional)
|
||||
*/
|
||||
@RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}")
|
||||
@RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}&allowEmpty={allowEmpty}")
|
||||
@Headers({
|
||||
"Accept: application/json",
|
||||
})
|
||||
void testQueryParameterCollectionFormat(@Param("pipe") List<String> pipe, @Param("ioutil") List<String> ioutil, @Param("http") List<String> http, @Param("url") List<String> url, @Param("context") List<String> context, @Param("language") Map<String, String> language);
|
||||
void testQueryParameterCollectionFormat(@Param("pipe") List<String> pipe, @Param("ioutil") List<String> ioutil, @Param("http") List<String> http, @Param("url") List<String> url, @Param("context") List<String> context, @Param("allowEmpty") String allowEmpty, @Param("language") Map<String, String> language);
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -463,9 +464,10 @@ public interface FakeApi extends ApiClient.Api {
|
||||
* <li>url - (required)</li>
|
||||
* <li>context - (required)</li>
|
||||
* <li>language - (optional)</li>
|
||||
* <li>allowEmpty - (required)</li>
|
||||
* </ul>
|
||||
*/
|
||||
@RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}")
|
||||
@RequestLine("PUT /fake/test-query-parameters?pipe={pipe}&ioutil={ioutil}&http={http}&url={url}&context={context}&language={language}&allowEmpty={allowEmpty}")
|
||||
@Headers({
|
||||
"Accept: application/json",
|
||||
})
|
||||
@@ -500,5 +502,9 @@ public interface FakeApi extends ApiClient.Api {
|
||||
put("language", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
public TestQueryParameterCollectionFormatQueryParams allowEmpty(final String value) {
|
||||
put("allowEmpty", EncodingUtils.encode(value));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user