Better handling of operationID starting with numbers (#691)

* add numeric operationid to test spec

* better handling of operationId in more generators

* fix go toOperationId

* update samples

* update java samples

* update java samples (vertx, webclient)

* update java google api client sample

* fix typo, update OAS3 test spec, update php petstore (oas3)

* defer camelize in operationid

* remove duplicated sanitizeName
This commit is contained in:
William Cheng 2018-08-01 22:31:58 +08:00 committed by GitHub
parent 21141f682f
commit ab08dd1d26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
113 changed files with 441 additions and 417 deletions

View File

@ -603,6 +603,12 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
operationId = "call_" + operationId;
}
// operationId starts with a number
if (operationId.matches("^\\d.*")) {
LOGGER.warn(operationId + " (starting with a number) cannot be used as method name. Renamed to " + camelize(sanitizeName("call_" + operationId)));
operationId = "call_" + operationId;
}
return camelize(sanitizeName(operationId));
}

View File

@ -314,7 +314,13 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
// method name cannot use reserved keyword, e.g. return
if (isReservedWord(sanitizedOperationId)) {
LOGGER.warn(operationId + " (reserved word) cannot be used as method name. Renamed to "
+ camelize("call_" + operationId));
+ camelize("call_" + sanitizedOperationId));
sanitizedOperationId = "call_" + sanitizedOperationId;
}
// operationId starts with a number
if (sanitizedOperationId.matches("^\\d.*")) {
LOGGER.warn(operationId + " (starting with a number) cannot be used as method name. Renamed to " + camelize("call_" + sanitizedOperationId));
sanitizedOperationId = "call_" + sanitizedOperationId;
}

View File

@ -884,6 +884,12 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
return newOperationId;
}
// operationId starts with a number
if (operationId.matches("^\\d.*")) {
LOGGER.warn(operationId + " (starting with a number) cannot be used as method sname. Renamed to " + camelize("call_" + operationId), true);
operationId = camelize("call_" + operationId, true);
}
return operationId;
}

View File

@ -377,8 +377,14 @@ public class PerlClientCodegen extends DefaultCodegen implements CodegenConfig {
// method name cannot use reserved keyword, e.g. return
if (isReservedWord(operationId)) {
LOGGER.warn(operationId + " (reserved word) cannot be used as method name. Renamed to " + underscore("call_" + operationId));
return underscore("call_" + operationId);
LOGGER.warn(operationId + " (reserved word) cannot be used as method name. Renamed to " + underscore(sanitizeName("call_" + operationId)));
return underscore(sanitizeName("call_" + operationId));
}
// operationId starts with a number
if (operationId.matches("^\\d.*")) {
LOGGER.warn(operationId + " (starting with a number) cannot be used as method name. Renamed to " + underscore(sanitizeName("call_" + operationId)));
operationId = "call_" + operationId;
}
//return underscore(operationId).replaceAll("[^A-Za-z0-9_]", "");

View File

@ -552,7 +552,7 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
operationId = "call_" + operationId;
}
// model name starts with a number
// operationId starts with a number
if (operationId.matches("^\\d.*")) {
LOGGER.warn(operationId + " (starting with a number) cannot be used as method name. Renamed to " + underscore(sanitizeName("call_" + operationId)));
operationId = "call_" + operationId;

View File

@ -929,8 +929,8 @@ paths:
tags:
- "$another-fake?"
summary: To test special tags
description: To test special tags
operationId: test_special_tags
description: To test special tags and operation ID starting with number
operationId: 123_test_@#$%_special_tags
consumes:
- application/json
produces:

View File

@ -898,8 +898,8 @@ paths:
tags:
- $another-fake?
summary: To test special tags
description: To test special tags
operationId: test_special_tags
description: To test special tags and operation ID starting with number
operationId: 123_test_@#$%_special_tags
responses:
'200':
description: successful operation

View File

@ -1 +1 @@
3.1.1-SNAPSHOT
3.2.0-SNAPSHOT

View File

@ -30,7 +30,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnotherFakeApi* | [**TestSpecialTags**](docs/AnotherFakeApi.md#testspecialtags) | **Patch** /another-fake/dummy | To test special tags
*AnotherFakeApi* | [**Call123TestSpecialTags**](docs/AnotherFakeApi.md#call123testspecialtags) | **Patch** /another-fake/dummy | To test special tags
*FakeApi* | [**FakeOuterBooleanSerialize**](docs/FakeApi.md#fakeouterbooleanserialize) | **Post** /fake/outer/boolean |
*FakeApi* | [**FakeOuterCompositeSerialize**](docs/FakeApi.md#fakeoutercompositeserialize) | **Post** /fake/outer/composite |
*FakeApi* | [**FakeOuterNumberSerialize**](docs/FakeApi.md#fakeouternumberserialize) | **Post** /fake/outer/number |

View File

@ -954,8 +954,8 @@ paths:
- fake
/another-fake/dummy:
patch:
description: To test special tags
operationId: test_special_tags
description: To test special tags and operation ID starting with number
operationId: 123_test_@#$%_special_tags
requestBody:
content:
application/json:

View File

@ -26,12 +26,12 @@ type AnotherFakeApiService service
/*
AnotherFakeApiService To test special tags
To test special tags
To test special tags and operation ID starting with number
* @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
* @param client client model
@return Client
*/
func (a *AnotherFakeApiService) TestSpecialTags(ctx context.Context, client Client) (Client, *http.Response, error) {
func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, client Client) (Client, *http.Response, error) {
var (
localVarHttpMethod = strings.ToUpper("Patch")
localVarPostBody interface{}

View File

@ -4,14 +4,14 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**TestSpecialTags**](AnotherFakeApi.md#TestSpecialTags) | **Patch** /another-fake/dummy | To test special tags
[**Call123TestSpecialTags**](AnotherFakeApi.md#Call123TestSpecialTags) | **Patch** /another-fake/dummy | To test special tags
# **TestSpecialTags**
> Client TestSpecialTags(ctx, client)
# **Call123TestSpecialTags**
> Client Call123TestSpecialTags(ctx, client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Required Parameters

View File

@ -17,7 +17,7 @@ public interface AnotherFakeApi extends ApiClient.Api {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
*/
@ -26,5 +26,5 @@ public interface AnotherFakeApi extends ApiClient.Api {
"Content-Type: application/json",
"Accept: application/json",
})
Client testSpecialTags(Client client);
Client call123testSpecialTags(Client client);
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -42,37 +42,37 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* <p><b>200</b> - successful operation
* @param client client model
* @return Client
* @throws IOException if an error occurs while attempting to invoke the API
**/
public Client testSpecialTags(Client client) throws IOException {
HttpResponse response = testSpecialTagsForHttpResponse(client);
public Client call123testSpecialTags(Client client) throws IOException {
HttpResponse response = call123testSpecialTagsForHttpResponse(client);
TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* <p><b>200</b> - successful operation
* @param client client model
* @param params Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.
* @return Client
* @throws IOException if an error occurs while attempting to invoke the API
**/
public Client testSpecialTags(Client client, Map<String, Object> params) throws IOException {
HttpResponse response = testSpecialTagsForHttpResponse(client, params);
public Client call123testSpecialTags(Client client, Map<String, Object> params) throws IOException {
HttpResponse response = call123testSpecialTagsForHttpResponse(client, params);
TypeReference typeRef = new TypeReference<Client>() {};
return apiClient.getObjectMapper().readValue(response.getContent(), typeRef);
}
public HttpResponse testSpecialTagsForHttpResponse(Client client) throws IOException {
public HttpResponse call123testSpecialTagsForHttpResponse(Client client) throws IOException {
// verify the required parameter 'client' is set
if (client == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testSpecialTags");
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
@ -83,10 +83,10 @@ public class AnotherFakeApi {
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
}
public HttpResponse testSpecialTagsForHttpResponse(java.io.InputStream client, String mediaType) throws IOException {
public HttpResponse call123testSpecialTagsForHttpResponse(java.io.InputStream client, String mediaType) throws IOException {
// verify the required parameter 'client' is set
if (client == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testSpecialTags");
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");
@ -99,10 +99,10 @@ public class AnotherFakeApi {
return apiClient.getHttpRequestFactory().buildRequest(HttpMethods.PATCH, genericUrl, content).execute();
}
public HttpResponse testSpecialTagsForHttpResponse(Client client, Map<String, Object> params) throws IOException {
public HttpResponse call123testSpecialTagsForHttpResponse(Client client, Map<String, Object> params) throws IOException {
// verify the required parameter 'client' is set
if (client == null) {
throw new IllegalArgumentException("Missing the required parameter 'client' when calling testSpecialTags");
throw new IllegalArgumentException("Missing the required parameter 'client' when calling call123testSpecialTags");
}
UriBuilder uriBuilder = UriBuilder.fromUri(apiClient.getBasePath() + "/another-fake/dummy");

View File

@ -35,15 +35,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws IOException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() throws IOException {
public void call123testSpecialTagsTest() throws IOException {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -50,17 +50,17 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testSpecialTags(Client client) throws ApiException {
public Client call123testSpecialTags(Client client) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testSpecialTags");
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
// create path and map variables

View File

@ -35,15 +35,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() throws ApiException {
public void call123testSpecialTagsTest() throws ApiException {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -37,28 +37,28 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testSpecialTags(Client client) throws ApiException {
return testSpecialTagsWithHttpInfo(client).getData();
public Client call123testSpecialTags(Client client) throws ApiException {
return call123testSpecialTagsWithHttpInfo(client).getData();
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<Client> testSpecialTagsWithHttpInfo(Client client) throws ApiException {
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testSpecialTags");
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
// create path and map variables

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -37,28 +37,28 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testSpecialTags(Client client) throws ApiException {
return testSpecialTagsWithHttpInfo(client).getData();
public Client call123testSpecialTags(Client client) throws ApiException {
return call123testSpecialTagsWithHttpInfo(client).getData();
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<Client> testSpecialTagsWithHttpInfo(Client client) throws ApiException {
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testSpecialTags");
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
// create path and map variables

View File

@ -35,15 +35,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() throws ApiException {
public void call123testSpecialTagsTest() throws ApiException {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -37,28 +37,28 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
public Client testSpecialTags(Client client) throws ApiException {
return testSpecialTagsWithHttpInfo(client).getData();
public Client call123testSpecialTags(Client client) throws ApiException {
return call123testSpecialTagsWithHttpInfo(client).getData();
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<Client> testSpecialTagsWithHttpInfo(Client client) throws ApiException {
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testSpecialTags");
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
// create path and map variables

View File

@ -35,15 +35,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() throws ApiException {
public void call123testSpecialTagsTest() throws ApiException {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -55,14 +55,14 @@ public class AnotherFakeApi {
}
/**
* Build call for testSpecialTags
* Build call for call123testSpecialTags
* @param client client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
// create path and map variables
@ -104,53 +104,53 @@ public class AnotherFakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testSpecialTags(Async)");
throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)");
}
com.squareup.okhttp.Call call = testSpecialTagsCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsCall(client, progressListener, progressRequestListener);
return call;
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testSpecialTags(Client client) throws ApiException {
ApiResponse<Client> resp = testSpecialTagsWithHttpInfo(client);
public Client call123testSpecialTags(Client client) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(client);
return resp.getData();
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testSpecialTagsWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testSpecialTagsValidateBeforeCall(client, null, null);
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* To test special tags (asynchronously)
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testSpecialTagsAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@ -171,7 +171,7 @@ public class AnotherFakeApi {
};
}
com.squareup.okhttp.Call call = testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -55,14 +55,14 @@ public class AnotherFakeApi {
}
/**
* Build call for testSpecialTags
* Build call for call123testSpecialTags
* @param client client model (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
public com.squareup.okhttp.Call testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
public com.squareup.okhttp.Call call123testSpecialTagsCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
Object localVarPostBody = client;
// create path and map variables
@ -104,53 +104,53 @@ public class AnotherFakeApi {
}
@SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
private com.squareup.okhttp.Call call123testSpecialTagsValidateBeforeCall(Client client, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException("Missing the required parameter 'client' when calling testSpecialTags(Async)");
throw new ApiException("Missing the required parameter 'client' when calling call123testSpecialTags(Async)");
}
com.squareup.okhttp.Call call = testSpecialTagsCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsCall(client, progressListener, progressRequestListener);
return call;
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public Client testSpecialTags(Client client) throws ApiException {
ApiResponse<Client> resp = testSpecialTagsWithHttpInfo(client);
public Client call123testSpecialTags(Client client) throws ApiException {
ApiResponse<Client> resp = call123testSpecialTagsWithHttpInfo(client);
return resp.getData();
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return ApiResponse&lt;Client&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Client> testSpecialTagsWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = testSpecialTagsValidateBeforeCall(client, null, null);
public ApiResponse<Client> call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
* To test special tags (asynchronously)
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
public com.squareup.okhttp.Call testSpecialTagsAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback<Client> callback) throws ApiException {
ProgressResponseBody.ProgressListener progressListener = null;
ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
@ -171,7 +171,7 @@ public class AnotherFakeApi {
};
}
com.squareup.okhttp.Call call = testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener);
com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, progressListener, progressRequestListener);
Type localVarReturnType = new TypeToken<Client>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;

View File

@ -35,15 +35,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() throws ApiException {
public void call123testSpecialTagsTest() throws ApiException {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -26,7 +26,7 @@ AnotherFakeApi api = ApiClient.api(ApiClient.Config.apiConfig().withReqSpecSuppl
() -> new RequestSpecBuilder()
.setBaseUri("http://petstore.swagger.io:80/v2"))).anotherFake();
api.testSpecialTags()
api.call123testSpecialTags()
.body(client).execute(r -> r.prettyPeek());
```

View File

@ -47,8 +47,8 @@ public class AnotherFakeApi {
}
public TestSpecialTagsOper testSpecialTags() {
return new TestSpecialTagsOper(reqSpec);
public Call123testSpecialTagsOper call123testSpecialTags() {
return new Call123testSpecialTagsOper(reqSpec);
}
/**
@ -63,12 +63,12 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
*
* @see #body client model (required)
* return Client
*/
public class TestSpecialTagsOper {
public class Call123testSpecialTagsOper {
public static final String REQ_METHOD = "PATCH";
public static final String REQ_URI = "/another-fake/dummy";
@ -78,14 +78,14 @@ public class AnotherFakeApi {
private ResponseSpecBuilder respSpec;
public TestSpecialTagsOper() {
public Call123testSpecialTagsOper() {
this.reqSpec = new RequestSpecBuilder();
reqSpec.setContentType("application/json");
reqSpec.setAccept("application/json");
this.respSpec = new ResponseSpecBuilder();
}
public TestSpecialTagsOper(RequestSpecBuilder reqSpec) {
public Call123testSpecialTagsOper(RequestSpecBuilder reqSpec) {
this.reqSpec = reqSpec;
reqSpec.setContentType("application/json");
reqSpec.setAccept("application/json");
@ -116,7 +116,7 @@ public class AnotherFakeApi {
* @param client (Client) client model (required)
* @return operation
*/
public TestSpecialTagsOper body(Client client) {
public Call123testSpecialTagsOper body(Client client) {
reqSpec.setBody(client);
return this;
}
@ -126,7 +126,7 @@ public class AnotherFakeApi {
* @param consumer consumer
* @return operation
*/
public TestSpecialTagsOper reqSpec(Consumer<RequestSpecBuilder> consumer) {
public Call123testSpecialTagsOper reqSpec(Consumer<RequestSpecBuilder> consumer) {
consumer.accept(reqSpec);
return this;
}
@ -136,7 +136,7 @@ public class AnotherFakeApi {
* @param consumer consumer
* @return operation
*/
public TestSpecialTagsOper respSpec(Consumer<ResponseSpecBuilder> consumer) {
public Call123testSpecialTagsOper respSpec(Consumer<ResponseSpecBuilder> consumer) {
consumer.accept(respSpec);
return this;
}

View File

@ -50,9 +50,9 @@ public class AnotherFakeApiTest {
* successful operation
*/
@Test
public void shouldSee200AfterTestSpecialTags() {
public void shouldSee200AfterCall123testSpecialTags() {
Client client = null;
api.testSpecialTags()
api.call123testSpecialTags()
.body(client).execute(r -> r.prettyPeek());
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -36,17 +36,17 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return a {@code Client}
* @throws ApiException if fails to make API call
*/
public Client testSpecialTags(Client client) throws ApiException {
public Client call123testSpecialTags(Client client) throws ApiException {
Object localVarPostBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new ApiException(400, "Missing the required parameter 'client' when calling testSpecialTags");
throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
// create path and map variables

View File

@ -35,15 +35,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() throws ApiException {
public void call123testSpecialTagsTest() throws ApiException {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -47,18 +47,18 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* <p><b>200</b> - successful operation
* @param client client model
* @return Client
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public Client testSpecialTags(Client client) throws RestClientException {
public Client call123testSpecialTags(Client client) throws RestClientException {
Object postBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testSpecialTags");
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
String path = UriComponentsBuilder.fromPath("/another-fake/dummy").build().toUriString();

View File

@ -34,15 +34,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() {
public void call123testSpecialTagsTest() {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -47,18 +47,18 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* <p><b>200</b> - successful operation
* @param client client model
* @return Client
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public Client testSpecialTags(Client client) throws RestClientException {
public Client call123testSpecialTags(Client client) throws RestClientException {
Object postBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testSpecialTags");
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
String path = UriComponentsBuilder.fromPath("/another-fake/dummy").build().toUriString();

View File

@ -34,15 +34,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() {
public void call123testSpecialTagsTest() {
Client client = null;
Client response = api.testSpecialTags(client);
Client response = api.call123testSpecialTags(client);
// TODO: test validations
}

View File

@ -17,13 +17,13 @@ public interface AnotherFakeApi {
/**
* To test special tags
* Sync method
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Client
*/
@PATCH("/another-fake/dummy")
Client testSpecialTags(
Client call123testSpecialTags(
@retrofit.http.Body Client client
);
@ -35,7 +35,7 @@ public interface AnotherFakeApi {
*/
@PATCH("/another-fake/dummy")
void testSpecialTags(
void call123testSpecialTags(
@retrofit.http.Body Client client, Callback<Client> cb
);
}

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -24,7 +24,7 @@ import retrofit2.Response;
public interface AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Call&lt;Client&gt;
*/
@ -32,7 +32,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
F.Promise<Response<Client>> testSpecialTags(
F.Promise<Response<Client>> call123testSpecialTags(
@retrofit2.http.Body Client client
);

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -24,7 +24,7 @@ import retrofit2.Response;
public interface AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Call&lt;Client&gt;
*/
@ -32,7 +32,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
CompletionStage<Response<Client>> testSpecialTags(
CompletionStage<Response<Client>> call123testSpecialTags(
@retrofit2.http.Body Client client
);

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -19,7 +19,7 @@ import java.util.Map;
public interface AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Call&lt;Client&gt;
*/
@ -27,7 +27,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
Call<Client> testSpecialTags(
Call<Client> call123testSpecialTags(
@retrofit2.http.Body Client client
);

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -19,7 +19,7 @@ import java.util.Map;
public interface AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Observable&lt;Client&gt;
*/
@ -27,7 +27,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
Observable<Client> testSpecialTags(
Observable<Client> call123testSpecialTags(
@retrofit2.http.Body Client client
);

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -20,7 +20,7 @@ import java.util.Map;
public interface AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Observable&lt;Client&gt;
*/
@ -28,7 +28,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
Observable<Client> testSpecialTags(
Observable<Client> call123testSpecialTags(
@retrofit2.http.Body Client client
);

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -9,6 +9,6 @@ import java.util.*;
public interface AnotherFakeApi {
void testSpecialTags(Client client, Handler<AsyncResult<Client>> handler);
void call123testSpecialTags(Client client, Handler<AsyncResult<Client>> handler);
}

View File

@ -39,16 +39,16 @@ public class AnotherFakeApiImpl implements AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param resultHandler Asynchronous result handler
*/
public void testSpecialTags(Client client, Handler<AsyncResult<Client>> resultHandler) {
public void call123testSpecialTags(Client client, Handler<AsyncResult<Client>> resultHandler) {
Object localVarBody = client;
// verify the required parameter 'client' is set
if (client == null) {
resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'client' when calling testSpecialTags"));
resultHandler.handle(ApiException.fail(400, "Missing the required parameter 'client' when calling call123testSpecialTags"));
return;
}

View File

@ -23,23 +23,23 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @param resultHandler Asynchronous result handler
*/
public void testSpecialTags(Client client, Handler<AsyncResult<Client>> resultHandler) {
delegate.testSpecialTags(client, resultHandler);
public void call123testSpecialTags(Client client, Handler<AsyncResult<Client>> resultHandler) {
delegate.call123testSpecialTags(client, resultHandler);
}
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* @param client client model (required)
* @return Asynchronous result handler (RxJava Single)
*/
public Single<Client> rxTestSpecialTags(Client client) {
public Single<Client> rxCall123testSpecialTags(Client client) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
delegate.testSpecialTags(client, fut);
delegate.call123testSpecialTags(client, fut);
}));
}

View File

@ -59,15 +59,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
*
* @param context Vertx test context for doing assertions
*/
@Test
public void testSpecialTagsTest(TestContext context) {
public void call123testSpecialTagsTest(TestContext context) {
Async async = context.async();
Client client = null;
api.testSpecialTags(client, result -> {
api.call123testSpecialTags(client, result -> {
// TODO: test validations
async.complete();
});

View File

@ -4,16 +4,16 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="testSpecialTags"></a>
# **testSpecialTags**
> Client testSpecialTags(client)
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags**
> Client call123testSpecialTags(client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```java
@ -25,10 +25,10 @@ To test special tags
AnotherFakeApi apiInstance = new AnotherFakeApi();
Client client = new Client(); // Client | client model
try {
Client result = apiInstance.testSpecialTags(client);
Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#testSpecialTags");
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
e.printStackTrace();
}
```

View File

@ -47,18 +47,18 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags
* To test special tags and operation ID starting with number
* <p><b>200</b> - successful operation
* @param client client model
* @return Client
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
public Mono<Client> testSpecialTags(Client client) throws RestClientException {
public Mono<Client> call123testSpecialTags(Client client) throws RestClientException {
Object postBody = client;
// verify the required parameter 'client' is set
if (client == null) {
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testSpecialTags");
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
String path = UriComponentsBuilder.fromPath("/another-fake/dummy").build().toUriString();

View File

@ -35,15 +35,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() throws ApiException {
public void call123testSpecialTagsTest() throws ApiException {
Client client = null;
Client response = api.testSpecialTags(client).block();
Client response = api.call123testSpecialTags(client).block();
// TODO: test validations
}

View File

@ -64,10 +64,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
try {
$result = $apiInstance->testSpecialTags($client);
$result = $apiInstance->123testSpecialTags($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnotherFakeApi->testSpecialTags: ', $e->getMessage(), PHP_EOL;
echo 'Exception when calling AnotherFakeApi->123testSpecialTags: ', $e->getMessage(), PHP_EOL;
}
?>
@ -79,7 +79,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnotherFakeApi* | [**testSpecialTags**](docs/Api/AnotherFakeApi.md#testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
*AnotherFakeApi* | [**123testSpecialTags**](docs/Api/AnotherFakeApi.md#123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/Api/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/Api/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
*FakeApi* | [**fakeOuterNumberSerialize**](docs/Api/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |

View File

@ -4,15 +4,15 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**123testSpecialTags**](AnotherFakeApi.md#123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
# **testSpecialTags**
> \OpenAPI\Client\Model\Client testSpecialTags($client)
# **123testSpecialTags**
> \OpenAPI\Client\Model\Client 123testSpecialTags($client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```php
@ -27,10 +27,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
try {
$result = $apiInstance->testSpecialTags($client);
$result = $apiInstance->123testSpecialTags($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnotherFakeApi->testSpecialTags: ', $e->getMessage(), PHP_EOL;
echo 'Exception when calling AnotherFakeApi->123testSpecialTags: ', $e->getMessage(), PHP_EOL;
}
?>
```

View File

@ -88,7 +88,7 @@ class AnotherFakeApi
}
/**
* Operation testSpecialTags
* Operation 123testSpecialTags
*
* To test special tags
*
@ -98,14 +98,14 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return \OpenAPI\Client\Model\Client
*/
public function testSpecialTags($client)
public function 123testSpecialTags($client)
{
list($response) = $this->testSpecialTagsWithHttpInfo($client);
list($response) = $this->123testSpecialTagsWithHttpInfo($client);
return $response;
}
/**
* Operation testSpecialTagsWithHttpInfo
* Operation 123testSpecialTagsWithHttpInfo
*
* To test special tags
*
@ -115,9 +115,9 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
*/
public function testSpecialTagsWithHttpInfo($client)
public function 123testSpecialTagsWithHttpInfo($client)
{
$request = $this->testSpecialTagsRequest($client);
$request = $this->123testSpecialTagsRequest($client);
try {
$options = $this->createHttpClientOption();
@ -199,7 +199,7 @@ class AnotherFakeApi
}
/**
* Operation testSpecialTagsAsync
* Operation 123testSpecialTagsAsync
*
* To test special tags
*
@ -208,9 +208,9 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function testSpecialTagsAsync($client)
public function 123testSpecialTagsAsync($client)
{
return $this->testSpecialTagsAsyncWithHttpInfo($client)
return $this->123testSpecialTagsAsyncWithHttpInfo($client)
->then(
function ($response) {
return $response[0];
@ -219,7 +219,7 @@ class AnotherFakeApi
}
/**
* Operation testSpecialTagsAsyncWithHttpInfo
* Operation 123testSpecialTagsAsyncWithHttpInfo
*
* To test special tags
*
@ -228,10 +228,10 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function testSpecialTagsAsyncWithHttpInfo($client)
public function 123testSpecialTagsAsyncWithHttpInfo($client)
{
$returnType = '\OpenAPI\Client\Model\Client';
$request = $this->testSpecialTagsRequest($client);
$request = $this->123testSpecialTagsRequest($client);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@ -271,19 +271,19 @@ class AnotherFakeApi
}
/**
* Create request for operation 'testSpecialTags'
* Create request for operation '123testSpecialTags'
*
* @param \OpenAPI\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function testSpecialTagsRequest($client)
protected function 123testSpecialTagsRequest($client)
{
// verify the required parameter 'client' is set
if ($client === null || (is_array($client) && count($client) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $client when calling testSpecialTags'
'Missing the required parameter $client when calling 123testSpecialTags'
);
}

View File

@ -72,12 +72,12 @@ class AnotherFakeApiTest extends \PHPUnit_Framework_TestCase
}
/**
* Test case for testSpecialTags
* Test case for 123testSpecialTags
*
* To test special tags.
*
*/
public function testTestSpecialTags()
public function test123testSpecialTags()
{
}
}

View File

@ -64,10 +64,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
try {
$result = $apiInstance->testSpecialTags($client);
$result = $apiInstance->123testSpecialTags($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnotherFakeApi->testSpecialTags: ', $e->getMessage(), PHP_EOL;
echo 'Exception when calling AnotherFakeApi->123testSpecialTags: ', $e->getMessage(), PHP_EOL;
}
?>
@ -79,7 +79,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnotherFakeApi* | [**testSpecialTags**](docs/Api/AnotherFakeApi.md#testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
*AnotherFakeApi* | [**123testSpecialTags**](docs/Api/AnotherFakeApi.md#123testspecialtags) | **PATCH** /another-fake/dummy | To test special tags
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/Api/FakeApi.md#fakeouterbooleanserialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/Api/FakeApi.md#fakeoutercompositeserialize) | **POST** /fake/outer/composite |
*FakeApi* | [**fakeOuterNumberSerialize**](docs/Api/FakeApi.md#fakeouternumberserialize) | **POST** /fake/outer/number |

View File

@ -4,15 +4,15 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**testSpecialTags**](AnotherFakeApi.md#testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
[**123testSpecialTags**](AnotherFakeApi.md#123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
# **testSpecialTags**
> \OpenAPI\Client\Model\Client testSpecialTags($client)
# **123testSpecialTags**
> \OpenAPI\Client\Model\Client 123testSpecialTags($client)
To test special tags
To test special tags
To test special tags and operation ID starting with number
### Example
```php
@ -27,10 +27,10 @@ $apiInstance = new OpenAPI\Client\Api\AnotherFakeApi(
$client = new \OpenAPI\Client\Model\Client(); // \OpenAPI\Client\Model\Client | client model
try {
$result = $apiInstance->testSpecialTags($client);
$result = $apiInstance->123testSpecialTags($client);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnotherFakeApi->testSpecialTags: ', $e->getMessage(), PHP_EOL;
echo 'Exception when calling AnotherFakeApi->123testSpecialTags: ', $e->getMessage(), PHP_EOL;
}
?>
```

View File

@ -88,7 +88,7 @@ class AnotherFakeApi
}
/**
* Operation testSpecialTags
* Operation 123testSpecialTags
*
* To test special tags
*
@ -98,14 +98,14 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return \OpenAPI\Client\Model\Client
*/
public function testSpecialTags($client)
public function 123testSpecialTags($client)
{
list($response) = $this->testSpecialTagsWithHttpInfo($client);
list($response) = $this->123testSpecialTagsWithHttpInfo($client);
return $response;
}
/**
* Operation testSpecialTagsWithHttpInfo
* Operation 123testSpecialTagsWithHttpInfo
*
* To test special tags
*
@ -115,9 +115,9 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return array of \OpenAPI\Client\Model\Client, HTTP status code, HTTP response headers (array of strings)
*/
public function testSpecialTagsWithHttpInfo($client)
public function 123testSpecialTagsWithHttpInfo($client)
{
$request = $this->testSpecialTagsRequest($client);
$request = $this->123testSpecialTagsRequest($client);
try {
$options = $this->createHttpClientOption();
@ -199,7 +199,7 @@ class AnotherFakeApi
}
/**
* Operation testSpecialTagsAsync
* Operation 123testSpecialTagsAsync
*
* To test special tags
*
@ -208,9 +208,9 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function testSpecialTagsAsync($client)
public function 123testSpecialTagsAsync($client)
{
return $this->testSpecialTagsAsyncWithHttpInfo($client)
return $this->123testSpecialTagsAsyncWithHttpInfo($client)
->then(
function ($response) {
return $response[0];
@ -219,7 +219,7 @@ class AnotherFakeApi
}
/**
* Operation testSpecialTagsAsyncWithHttpInfo
* Operation 123testSpecialTagsAsyncWithHttpInfo
*
* To test special tags
*
@ -228,10 +228,10 @@ class AnotherFakeApi
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function testSpecialTagsAsyncWithHttpInfo($client)
public function 123testSpecialTagsAsyncWithHttpInfo($client)
{
$returnType = '\OpenAPI\Client\Model\Client';
$request = $this->testSpecialTagsRequest($client);
$request = $this->123testSpecialTagsRequest($client);
return $this->client
->sendAsync($request, $this->createHttpClientOption())
@ -271,19 +271,19 @@ class AnotherFakeApi
}
/**
* Create request for operation 'testSpecialTags'
* Create request for operation '123testSpecialTags'
*
* @param \OpenAPI\Client\Model\Client $client client model (required)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function testSpecialTagsRequest($client)
protected function 123testSpecialTagsRequest($client)
{
// verify the required parameter 'client' is set
if ($client === null || (is_array($client) && count($client) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $client when calling testSpecialTags'
'Missing the required parameter $client when calling 123testSpecialTags'
);
}

View File

@ -72,12 +72,12 @@ class AnotherFakeApiTest extends \PHPUnit_Framework_TestCase
}
/**
* Test case for testSpecialTags
* Test case for 123testSpecialTags
*
* To test special tags.
*
*/
public function testTestSpecialTags()
public function test123testSpecialTags()
{
}
}

View File

@ -32,7 +32,7 @@ public interface AnotherFakeApi {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
*/
@PATCH
@ -42,6 +42,6 @@ public interface AnotherFakeApi {
@ApiOperation(value = "To test special tags", tags={ "$another-fake?" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Client testSpecialTags(@Valid Client client);
public Client call123testSpecialTags(@Valid Client client);
}

View File

@ -26,10 +26,10 @@ public class AnotherFakeApiServiceImpl implements AnotherFakeApi {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
*/
public Client testSpecialTags(Client client) {
public Client call123testSpecialTags(Client client) {
// TODO: Implement...
return null;

View File

@ -74,15 +74,15 @@ public class AnotherFakeApiTest {
/**
* To test special tags
*
* To test special tags
* To test special tags and operation ID starting with number
*
* @throws ApiException
* if the Api call fails
*/
@Test
public void testSpecialTagsTest() {
public void call123testSpecialTagsTest() {
Client client = null;
//Client response = api.testSpecialTags(client);
//Client response = api.call123testSpecialTags(client);
//assertNotNull(response);
// TODO: test validations

View File

@ -58,12 +58,12 @@ public class AnotherFakeApi {
@Path("/dummy")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?", })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testSpecialTags(@ApiParam(value = "client model" ,required=true) Client client
public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) Client client
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testSpecialTags(client,securityContext);
return delegate.call123testSpecialTags(client,securityContext);
}
}

View File

@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext;
import javax.validation.constraints.*;
public abstract class AnotherFakeApiService {
public abstract Response testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException;
public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException;
}

View File

@ -18,7 +18,7 @@ import javax.validation.constraints.*;
public class AnotherFakeApiServiceImpl extends AnotherFakeApiService {
@Override
public Response testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException {
public Response call123testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException {
// do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
}

View File

@ -20,8 +20,8 @@ public interface AnotherFakeApi {
@Path("/dummy")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "To test special tags", notes = "To test special tags", tags={ "$another-fake?" })
@ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", tags={ "$another-fake?" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
Client testSpecialTags(@Valid Client client);
Client call123testSpecialTags(@Valid Client client);
}

View File

@ -1016,8 +1016,8 @@ paths:
- tag: fake
/another-fake/dummy:
patch:
description: To test special tags
operationId: test_special_tags
description: To test special tags and operation ID starting with number
operationId: 123_test_@#$%_special_tags
requestBody:
content:
application/json:

View File

@ -20,11 +20,11 @@ public class AnotherFakeApi {
@Path("/dummy")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@ApiOperation(value = "To test special tags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?" })
@ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class)
})
public Response testSpecialTags(@Valid Client client) {
public Response call123testSpecialTags(@Valid Client client) {
return Response.ok().entity("magic!").build();
}
}

View File

@ -1016,8 +1016,8 @@ paths:
- tag: fake
/another-fake/dummy:
patch:
description: To test special tags
operationId: test_special_tags
description: To test special tags and operation ID starting with number
operationId: 123_test_@#$%_special_tags
requestBody:
content:
application/json:

View File

@ -38,13 +38,13 @@ public class AnotherFakeApi {
@Path("/another-fake/dummy")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?" })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?" })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testSpecialTags(
public Response call123testSpecialTags(
@ApiParam(value = "client model" ,required=true) Client client,
@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testSpecialTags(client,securityContext);
return delegate.call123testSpecialTags(client,securityContext);
}
}

View File

@ -20,6 +20,6 @@ import javax.ws.rs.core.SecurityContext;
import javax.validation.constraints.*;
public abstract class AnotherFakeApiService {
public abstract Response testSpecialTags(Client client,SecurityContext securityContext)
public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext)
throws NotFoundException;
}

View File

@ -21,7 +21,7 @@ import javax.validation.constraints.*;
public class AnotherFakeApiServiceImpl extends AnotherFakeApiService {
@Override
public Response testSpecialTags(Client client, SecurityContext securityContext)
public Response call123testSpecialTags(Client client, SecurityContext securityContext)
throws NotFoundException {
// do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();

View File

@ -38,13 +38,13 @@ public class AnotherFakeApi {
@Path("/dummy")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?" })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?" })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testSpecialTags(
public Response call123testSpecialTags(
@ApiParam(value = "client model" ,required=true) Client client,
@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testSpecialTags(client,securityContext);
return delegate.call123testSpecialTags(client,securityContext);
}
}

View File

@ -20,6 +20,6 @@ import javax.ws.rs.core.SecurityContext;
import javax.validation.constraints.*;
public abstract class AnotherFakeApiService {
public abstract Response testSpecialTags(Client client,SecurityContext securityContext)
public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext)
throws NotFoundException;
}

View File

@ -21,7 +21,7 @@ import javax.validation.constraints.*;
public class AnotherFakeApiServiceImpl extends AnotherFakeApiService {
@Override
public Response testSpecialTags(Client client, SecurityContext securityContext)
public Response call123testSpecialTags(Client client, SecurityContext securityContext)
throws NotFoundException {
// do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();

View File

@ -58,12 +58,12 @@ public class AnotherFakeApi {
@Path("/another-fake/dummy")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?", })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testSpecialTags(@ApiParam(value = "client model" ,required=true) Client client
public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) Client client
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testSpecialTags(client,securityContext);
return delegate.call123testSpecialTags(client,securityContext);
}
}

View File

@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext;
import javax.validation.constraints.*;
public abstract class AnotherFakeApiService {
public abstract Response testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException;
public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException;
}

View File

@ -18,7 +18,7 @@ import javax.validation.constraints.*;
public class AnotherFakeApiServiceImpl extends AnotherFakeApiService {
@Override
public Response testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException {
public Response call123testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException {
// do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
}

View File

@ -58,12 +58,12 @@ public class AnotherFakeApi {
@Path("/dummy")
@Consumes({ "application/json" })
@Produces({ "application/json" })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?", })
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testSpecialTags(@ApiParam(value = "client model" ,required=true) Client client
public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) Client client
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testSpecialTags(client,securityContext);
return delegate.call123testSpecialTags(client,securityContext);
}
}

View File

@ -17,5 +17,5 @@ import javax.ws.rs.core.SecurityContext;
import javax.validation.constraints.*;
public abstract class AnotherFakeApiService {
public abstract Response testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException;
public abstract Response call123testSpecialTags(Client client,SecurityContext securityContext) throws NotFoundException;
}

View File

@ -18,7 +18,7 @@ import javax.validation.constraints.*;
public class AnotherFakeApiServiceImpl extends AnotherFakeApiService {
@Override
public Response testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException {
public Response call123testSpecialTags(Client client, SecurityContext securityContext) throws NotFoundException {
// do some magic!
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
}

View File

@ -27,14 +27,14 @@ class AnotherFakeApi extends Controller
}
/**
* Operation testSpecialTags
* Operation 123testSpecialTags
*
* To test special tags.
*
*
* @return Http response
*/
public function testSpecialTags()
public function 123testSpecialTags()
{
$input = Request::all();
@ -43,11 +43,11 @@ class AnotherFakeApi extends Controller
//not path params validation
if (!isset($input['client'])) {
throw new \InvalidArgumentException('Missing the required parameter $client when calling testSpecialTags');
throw new \InvalidArgumentException('Missing the required parameter $client when calling 123testSpecialTags');
}
$client = $input['client'];
return response('How about implementing testSpecialTags as a patch method ?');
return response('How about implementing 123testSpecialTags as a patch method ?');
}
}

View File

@ -22,12 +22,12 @@ $app->get('/', function () use ($app) {
});
/**
* patch testSpecialTags
* patch 123testSpecialTags
* Summary: To test special tags
* Notes: To test special tags
* Notes: To test special tags and operation ID starting with number
* Output-Formats: [application/json]
*/
$app->patch('/v2/another-fake/dummy', 'AnotherFakeApi@testSpecialTags');
$app->patch('/v2/another-fake/dummy', 'AnotherFakeApi@123testSpecialTags');
/**
* patch testClientModel
* Summary: To test \&quot;client\&quot; model

View File

@ -40,18 +40,18 @@ use OpenAPIServer\AbstractApiController;
class AnotherFakeApi extends AbstractApiController {
/**
* PATCH testSpecialTags
* PATCH 123testSpecialTags
* Summary: To test special tags
* Notes: To test special tags
* Notes: To test special tags and operation ID starting with number
* Output-Formats: [application/json]
*
* @param \Psr\Http\Message\ServerRequestInterface $request Request
* @param \Psr\Http\Message\ResponseInterface $response Response
* @param array|null $args Path arguments
*/
public function testSpecialTags($request, $response, $args) {
public function 123testSpecialTags($request, $response, $args) {
$body = $request->getParsedBody();
$response->write('How about implementing testSpecialTags as a PATCH method ?');
$response->write('How about implementing 123testSpecialTags as a PATCH method ?');
return $response;
}

View File

@ -72,7 +72,7 @@ class SlimRouter {
]);
$app->PATCH(
'/v2/another-fake/dummy', AnotherFakeApi::class . ':testSpecialTags'
'/v2/another-fake/dummy', AnotherFakeApi::class . ':123testSpecialTags'
);
$app->POST(
'/v2/fake/outer/boolean', FakeApi::class . ':fakeOuterBooleanSerialize'

View File

@ -36,14 +36,14 @@ public interface AnotherFakeApi {
return Optional.empty();
}
@ApiOperation(value = "To test special tags", nickname = "testSpecialTags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?", })
@ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
@RequestMapping(value = "/another-fake/dummy",
produces = { "application/json" },
consumes = { "application/json" },
method = RequestMethod.PATCH)
default CompletableFuture<ResponseEntity<Client>> testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
default CompletableFuture<ResponseEntity<Client>> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
return CompletableFuture.supplyAsync(()-> {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {

View File

@ -35,14 +35,14 @@ public interface AnotherFakeApi {
return Optional.empty();
}
@ApiOperation(value = "To test special tags", nickname = "testSpecialTags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?", })
@ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
@RequestMapping(value = "/another-fake/dummy",
produces = { "application/json" },
consumes = { "application/json" },
method = RequestMethod.PATCH)
default ResponseEntity<Client> testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
default ResponseEntity<Client> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {

View File

@ -27,13 +27,13 @@ import java.util.Map;
@Api(value = "another-fake", description = "the another-fake API")
public interface AnotherFakeApi {
@ApiOperation(value = "To test special tags", nickname = "testSpecialTags", notes = "To test special tags", response = Client.class, tags={ "$another-fake?", })
@ApiOperation(value = "To test special tags", nickname = "call123testSpecialTags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "successful operation", response = Client.class) })
@RequestMapping(value = "/another-fake/dummy",
produces = { "application/json" },
consumes = { "application/json" },
method = RequestMethod.PATCH)
ResponseEntity<Client> testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
ResponseEntity<Client> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
}

Some files were not shown because too many files have changed in this diff Show More