diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java
index e92ad679d93..c56f2c9423c 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java
@@ -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));
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java
index a710c6c852a..a83ac0d392f 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java
@@ -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;
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
index 557f238a0ff..ea1b16fbfbe 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractJavaCodegen.java
@@ -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;
}
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java
index a7bcb087b1a..08172a2cdce 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PerlClientCodegen.java
@@ -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_]", "");
diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
index 3ce9fd71d20..0789d6260d5 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
@@ -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;
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
index 76610719668..5fc7ebf0709 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
@@ -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:
diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
index bda4b8071d2..78ba11aaebc 100644
--- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
+++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
@@ -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
diff --git a/samples/client/petstore/go/go-petstore/.openapi-generator/VERSION b/samples/client/petstore/go/go-petstore/.openapi-generator/VERSION
index dde25ef08e8..4395ff59232 100644
--- a/samples/client/petstore/go/go-petstore/.openapi-generator/VERSION
+++ b/samples/client/petstore/go/go-petstore/.openapi-generator/VERSION
@@ -1 +1 @@
-3.1.1-SNAPSHOT
\ No newline at end of file
+3.2.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore/go/go-petstore/README.md b/samples/client/petstore/go/go-petstore/README.md
index 79673db9e37..610174ac2a8 100644
--- a/samples/client/petstore/go/go-petstore/README.md
+++ b/samples/client/petstore/go/go-petstore/README.md
@@ -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 |
diff --git a/samples/client/petstore/go/go-petstore/api/openapi.yaml b/samples/client/petstore/go/go-petstore/api/openapi.yaml
index 1843427a4fc..1ccb557da3b 100644
--- a/samples/client/petstore/go/go-petstore/api/openapi.yaml
+++ b/samples/client/petstore/go/go-petstore/api/openapi.yaml
@@ -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:
diff --git a/samples/client/petstore/go/go-petstore/api_another_fake.go b/samples/client/petstore/go/go-petstore/api_another_fake.go
index 7a8691ec374..cf9b1f98673 100644
--- a/samples/client/petstore/go/go-petstore/api_another_fake.go
+++ b/samples/client/petstore/go/go-petstore/api_another_fake.go
@@ -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{}
diff --git a/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md b/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md
index ce9779af264..43c63231137 100644
--- a/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/go/go-petstore/docs/AnotherFakeApi.md
@@ -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
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index e0b813f2a6e..f41fb1dec4f 100644
--- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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);
}
diff --git a/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md b/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/google-api-client/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 4b52082378f..ab532e85362 100644
--- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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
*
200 - 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() {};
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
* 200 - 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 params) throws IOException {
- HttpResponse response = testSpecialTagsForHttpResponse(client, params);
+ public Client call123testSpecialTags(Client client, Map params) throws IOException {
+ HttpResponse response = call123testSpecialTagsForHttpResponse(client, params);
TypeReference typeRef = new TypeReference() {};
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 params) throws IOException {
+ public HttpResponse call123testSpecialTagsForHttpResponse(Client client, Map 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");
diff --git a/samples/client/petstore/java/google-api-client/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/google-api-client/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index cddd52987eb..baebe15ab21 100644
--- a/samples/client/petstore/java/google-api-client/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/google-api-client/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey1/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 895639d3122..7d39d56b6c4 100644
--- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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
diff --git a/samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 872fb602156..b6db8d2a2c3 100644
--- a/samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/jersey1/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 66ce30be1d5..2060f36dd25 100644
--- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
* @throws ApiException if fails to make API call
*/
- public ApiResponse testSpecialTagsWithHttpInfo(Client client) throws ApiException {
+ public ApiResponse 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
diff --git a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey2-java8/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 66ce30be1d5..2060f36dd25 100644
--- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
* @throws ApiException if fails to make API call
*/
- public ApiResponse testSpecialTagsWithHttpInfo(Client client) throws ApiException {
+ public ApiResponse 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
diff --git a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 872fb602156..b6db8d2a2c3 100644
--- a/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/jersey2-java8/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md b/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/jersey2/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 66ce30be1d5..2060f36dd25 100644
--- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
* @throws ApiException if fails to make API call
*/
- public ApiResponse testSpecialTagsWithHttpInfo(Client client) throws ApiException {
+ public ApiResponse 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
diff --git a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 872fb602156..b6db8d2a2c3 100644
--- a/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/jersey2/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 87fe1e59297..cb429b37da6 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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 resp = testSpecialTagsWithHttpInfo(client);
+ public Client call123testSpecialTags(Client client) throws ApiException {
+ ApiResponse 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<Client>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse testSpecialTagsWithHttpInfo(Client client) throws ApiException {
- com.squareup.okhttp.Call call = testSpecialTagsValidateBeforeCall(client, null, null);
+ public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
+ com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null);
Type localVarReturnType = new TypeToken(){}.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 callback) throws ApiException {
+ public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback 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(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
diff --git a/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md b/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/okhttp-gson/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 87fe1e59297..cb429b37da6 100644
--- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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 resp = testSpecialTagsWithHttpInfo(client);
+ public Client call123testSpecialTags(Client client) throws ApiException {
+ ApiResponse 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<Client>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse testSpecialTagsWithHttpInfo(Client client) throws ApiException {
- com.squareup.okhttp.Call call = testSpecialTagsValidateBeforeCall(client, null, null);
+ public ApiResponse call123testSpecialTagsWithHttpInfo(Client client) throws ApiException {
+ com.squareup.okhttp.Call call = call123testSpecialTagsValidateBeforeCall(client, null, null);
Type localVarReturnType = new TypeToken(){}.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 callback) throws ApiException {
+ public com.squareup.okhttp.Call call123testSpecialTagsAsync(Client client, final ApiCallback 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(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
diff --git a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 872fb602156..b6db8d2a2c3 100644
--- a/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/okhttp-gson/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md b/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md
index a17009e27b8..8ac4b3cb4dc 100644
--- a/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/rest-assured/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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());
```
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 4573164eb32..2cb316a26ee 100644
--- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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 consumer) {
+ public Call123testSpecialTagsOper reqSpec(Consumer consumer) {
consumer.accept(reqSpec);
return this;
}
@@ -136,7 +136,7 @@ public class AnotherFakeApi {
* @param consumer consumer
* @return operation
*/
- public TestSpecialTagsOper respSpec(Consumer consumer) {
+ public Call123testSpecialTagsOper respSpec(Consumer consumer) {
consumer.accept(respSpec);
return this;
}
diff --git a/samples/client/petstore/java/rest-assured/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/rest-assured/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 59fd096f464..742dbac3250 100644
--- a/samples/client/petstore/java/rest-assured/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/rest-assured/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md b/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/resteasy/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index fc5b6d8ac5d..57fa4a98a85 100644
--- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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
diff --git a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 872fb602156..b6db8d2a2c3 100644
--- a/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/resteasy/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/resttemplate-withXml/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 60adce2af94..08bbc033fbe 100644
--- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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
* 200 - 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();
diff --git a/samples/client/petstore/java/resttemplate-withXml/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/resttemplate-withXml/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 627540e045f..2953c8a0c0b 100644
--- a/samples/client/petstore/java/resttemplate-withXml/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/resttemplate-withXml/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md b/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/resttemplate/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 60adce2af94..08bbc033fbe 100644
--- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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
*
200 - 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();
diff --git a/samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 627540e045f..2953c8a0c0b 100644
--- a/samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/resttemplate/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 2f3bc37b756..7a8dfbc3cd9 100644
--- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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 cb
);
}
diff --git a/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md
index fff646fef7a..c44a064755c 100644
--- a/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/retrofit2-play24/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index ae435c0897b..2e7b01f0557 100644
--- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
*/
@@ -32,7 +32,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
- F.Promise> testSpecialTags(
+ F.Promise> call123testSpecialTags(
@retrofit2.http.Body Client client
);
diff --git a/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md
index fff646fef7a..c44a064755c 100644
--- a/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/retrofit2-play25/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 5594221d7a6..616c44b0102 100644
--- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
*/
@@ -32,7 +32,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
- CompletionStage> testSpecialTags(
+ CompletionStage> call123testSpecialTags(
@retrofit2.http.Body Client client
);
diff --git a/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md
index fff646fef7a..c44a064755c 100644
--- a/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/retrofit2/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 4b2658c56fc..043e2144347 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
*/
@@ -27,7 +27,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
- Call testSpecialTags(
+ Call call123testSpecialTags(
@retrofit2.http.Body Client client
);
diff --git a/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md
index fff646fef7a..c44a064755c 100644
--- a/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/retrofit2rx/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 5099cb49593..482fbf1d501 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
*/
@@ -27,7 +27,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
- Observable testSpecialTags(
+ Observable call123testSpecialTags(
@retrofit2.http.Body Client client
);
diff --git a/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md b/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md
index fff646fef7a..c44a064755c 100644
--- a/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/retrofit2rx2/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 1fb66b6aa32..81b821d0194 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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<Client>
*/
@@ -28,7 +28,7 @@ public interface AnotherFakeApi {
"Content-Type:application/json"
})
@PATCH("another-fake/dummy")
- Observable testSpecialTags(
+ Observable call123testSpecialTags(
@retrofit2.http.Body Client client
);
diff --git a/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md b/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/vertx/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index f6b151f1f98..e3526083127 100644
--- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -9,6 +9,6 @@ import java.util.*;
public interface AnotherFakeApi {
- void testSpecialTags(Client client, Handler> handler);
+ void call123testSpecialTags(Client client, Handler> handler);
}
diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java
index 0dddf711be3..b6d794b35c5 100644
--- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java
+++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/AnotherFakeApiImpl.java
@@ -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> resultHandler) {
+ public void call123testSpecialTags(Client client, Handler> 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;
}
diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java
index af9af97bdac..28b6bcc6a0c 100644
--- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java
+++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/api/rxjava/AnotherFakeApi.java
@@ -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> resultHandler) {
- delegate.testSpecialTags(client, resultHandler);
+ public void call123testSpecialTags(Client client, Handler> 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 rxTestSpecialTags(Client client) {
+ public Single rxCall123testSpecialTags(Client client) {
return Single.create(new io.vertx.rx.java.SingleOnSubscribeAdapter<>(fut -> {
- delegate.testSpecialTags(client, fut);
+ delegate.call123testSpecialTags(client, fut);
}));
}
diff --git a/samples/client/petstore/java/vertx/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/vertx/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index baf7f74d248..64da5ac36e8 100644
--- a/samples/client/petstore/java/vertx/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/vertx/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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();
});
diff --git a/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md b/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md
index edb115b7933..a618e3928c9 100644
--- a/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/webclient/docs/AnotherFakeApi.md
@@ -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
-
-# **testSpecialTags**
-> Client testSpecialTags(client)
+
+# **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();
}
```
diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 3b5beefa97f..2020fac4b53 100644
--- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -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
* 200 - successful operation
* @param client client model
* @return Client
* @throws RestClientException if an error occurs while attempting to invoke the API
*/
- public Mono testSpecialTags(Client client) throws RestClientException {
+ public Mono 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();
diff --git a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
index 69ff923c8c2..6f593f9144d 100644
--- a/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
+++ b/samples/client/petstore/java/webclient/src/test/java/org/openapitools/client/api/AnotherFakeApiTest.java
@@ -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
}
diff --git a/samples/client/petstore/php/OpenAPIClient-php/README.md b/samples/client/petstore/php/OpenAPIClient-php/README.md
index ff30507fe79..481b9eb1029 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/README.md
+++ b/samples/client/petstore/php/OpenAPIClient-php/README.md
@@ -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 |
diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md
index 9e4f59fce29..94e246084a0 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md
+++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md
@@ -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;
}
?>
```
diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php
index 61dda55691c..62893a2a90d 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php
+++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php
@@ -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'
);
}
diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php
index 7730d7b3386..97d63ae68d9 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php
+++ b/samples/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php
@@ -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()
{
}
}
diff --git a/samples/openapi3/client/petstore/php/OpenAPIClient-php/README.md b/samples/openapi3/client/petstore/php/OpenAPIClient-php/README.md
index ff30507fe79..481b9eb1029 100644
--- a/samples/openapi3/client/petstore/php/OpenAPIClient-php/README.md
+++ b/samples/openapi3/client/petstore/php/OpenAPIClient-php/README.md
@@ -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 |
diff --git a/samples/openapi3/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md b/samples/openapi3/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md
index 9e4f59fce29..94e246084a0 100644
--- a/samples/openapi3/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md
+++ b/samples/openapi3/client/petstore/php/OpenAPIClient-php/docs/Api/AnotherFakeApi.md
@@ -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;
}
?>
```
diff --git a/samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php b/samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php
index 61dda55691c..62893a2a90d 100644
--- a/samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php
+++ b/samples/openapi3/client/petstore/php/OpenAPIClient-php/lib/Api/AnotherFakeApi.php
@@ -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'
);
}
diff --git a/samples/openapi3/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php b/samples/openapi3/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php
index 7730d7b3386..97d63ae68d9 100644
--- a/samples/openapi3/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php
+++ b/samples/openapi3/client/petstore/php/OpenAPIClient-php/test/Api/AnotherFakeApiTest.php
@@ -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()
{
}
}
diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index 4f77743ac40..07c44ba7680 100644
--- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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);
}
diff --git a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
index bbfbf8e2d7f..3718c124513 100644
--- a/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs-cxf/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
@@ -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;
diff --git a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java
index 210ea87532b..631c28ba048 100644
--- a/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java
+++ b/samples/server/petstore/jaxrs-cxf/src/test/java/org/openapitools/api/AnotherFakeApiTest.java
@@ -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
diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index 042f91ddfa9..c1eb8b88c3c 100644
--- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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);
}
}
diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
index d8df665e2a6..fa614bab5a1 100644
--- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
+++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
@@ -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;
}
diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
index e2d6575d836..05e89018227 100644
--- a/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs-datelib-j8/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
@@ -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();
}
diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index f4224c09864..cfa8e250aca 100644
--- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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);
}
diff --git a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml
index 536d1d39126..8ce9975a0aa 100644
--- a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml
+++ b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml
@@ -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:
diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index 0b3ba505c55..e7671f76c59 100644
--- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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();
}
}
diff --git a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml
index 536d1d39126..8ce9975a0aa 100644
--- a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml
+++ b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml
@@ -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:
diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index f466cddbf29..2a63ee651be 100644
--- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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);
}
}
diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
index 10b25b73c62..62343b93c34 100644
--- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
+++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
@@ -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;
}
diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
index 25c44d96587..e6b4fb1079b 100644
--- a/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
@@ -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();
diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index c09dfee5a3e..b9baefac5b6 100644
--- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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);
}
}
diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
index 10b25b73c62..62343b93c34 100644
--- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
+++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
@@ -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;
}
diff --git a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
index 25c44d96587..e6b4fb1079b 100644
--- a/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs/jersey1/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
@@ -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();
diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index 4336bd462a9..d7af3cd53de 100644
--- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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);
}
}
diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
index d8df665e2a6..fa614bab5a1 100644
--- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
+++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
@@ -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;
}
diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
index e2d6575d836..05e89018227 100644
--- a/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
@@ -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();
}
diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java
index 042f91ddfa9..c1eb8b88c3c 100644
--- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApi.java
@@ -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);
}
}
diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
index d8df665e2a6..fa614bab5a1 100644
--- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
+++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/api/AnotherFakeApiService.java
@@ -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;
}
diff --git a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
index e2d6575d836..05e89018227 100644
--- a/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
+++ b/samples/server/petstore/jaxrs/jersey2/src/main/java/org/openapitools/api/impl/AnotherFakeApiServiceImpl.java
@@ -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();
}
diff --git a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php
index f029754faee..8bf2758fd91 100644
--- a/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php
+++ b/samples/server/petstore/php-lumen/lib/app/Http/Controllers/AnotherFakeApi.php
@@ -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 ?');
}
}
diff --git a/samples/server/petstore/php-lumen/lib/app/Http/routes.php b/samples/server/petstore/php-lumen/lib/app/Http/routes.php
index 078941b98b0..ae9dae4de2a 100644
--- a/samples/server/petstore/php-lumen/lib/app/Http/routes.php
+++ b/samples/server/petstore/php-lumen/lib/app/Http/routes.php
@@ -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 \"client\" model
diff --git a/samples/server/petstore/php-slim/lib/Api/AnotherFakeApi.php b/samples/server/petstore/php-slim/lib/Api/AnotherFakeApi.php
index 1888e1319cb..8521f9fef9e 100644
--- a/samples/server/petstore/php-slim/lib/Api/AnotherFakeApi.php
+++ b/samples/server/petstore/php-slim/lib/Api/AnotherFakeApi.php
@@ -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;
}
diff --git a/samples/server/petstore/php-slim/lib/SlimRouter.php b/samples/server/petstore/php-slim/lib/SlimRouter.php
index bd624e4da04..2042a5f7ad5 100644
--- a/samples/server/petstore/php-slim/lib/SlimRouter.php
+++ b/samples/server/petstore/php-slim/lib/SlimRouter.php
@@ -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'
diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java
index c6605bd0d27..e885a967b3b 100644
--- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -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> testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ default CompletableFuture> 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"))) {
diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 2f9f70d8587..aca5f858447 100644
--- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -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 testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ default ResponseEntity 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"))) {
diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 1e209515e88..100cf68106e 100644
--- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -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 testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
+ ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
}
diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java
index b2bef577409..67f1fcd713b 100644
--- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java
+++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/api/AnotherFakeApiController.java
@@ -31,7 +31,7 @@ public class AnotherFakeApiController implements AnotherFakeApi {
this.request = request;
}
- public ResponseEntity testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}");
diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 1e209515e88..100cf68106e 100644
--- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -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 testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
+ ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
}
diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java
index 4be8a57963d..d1826897741 100644
--- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java
+++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/api/AnotherFakeApiController.java
@@ -31,7 +31,7 @@ public class AnotherFakeApiController implements AnotherFakeApi {
this.request = request;
}
- public ResponseEntity testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
ApiUtil.setExampleResponse(request, "application/json", "{ \"client\" : \"client\"}");
diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 48e1898654b..e10911ee02a 100644
--- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -31,15 +31,15 @@ public interface AnotherFakeApi {
return new AnotherFakeApiDelegate() {};
}
- @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 testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
- return getDelegate().testSpecialTags(client);
+ default ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ return getDelegate().call123testSpecialTags(client);
}
}
diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java
index 7215de97519..4db33947735 100644
--- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java
+++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java
@@ -24,9 +24,9 @@ public interface AnotherFakeApiDelegate {
}
/**
- * @see AnotherFakeApi#testSpecialTags
+ * @see AnotherFakeApi#call123testSpecialTags
*/
- default ResponseEntity testSpecialTags( Client client) {
+ default ResponseEntity call123testSpecialTags( Client client) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 1e209515e88..100cf68106e 100644
--- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -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 testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
+ ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client);
}
diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java
index a1397240205..254904f899e 100644
--- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java
+++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiController.java
@@ -29,8 +29,8 @@ public class AnotherFakeApiController implements AnotherFakeApi {
this.delegate = delegate;
}
- public ResponseEntity testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
- return delegate.testSpecialTags(client);
+ public ResponseEntity call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ return delegate.call123testSpecialTags(client);
}
}
diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java
index 8e88f2092c6..569d1299b99 100644
--- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java
+++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/api/AnotherFakeApiDelegate.java
@@ -16,8 +16,8 @@ import java.util.Map;
public interface AnotherFakeApiDelegate {
/**
- * @see AnotherFakeApi#testSpecialTags
+ * @see AnotherFakeApi#call123testSpecialTags
*/
- ResponseEntity testSpecialTags( Client client);
+ ResponseEntity call123testSpecialTags( Client client);
}
diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 79dedf4db0a..13ef7eaf2aa 100644
--- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -35,7 +35,7 @@ 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) })
@ApiImplicitParams({
@@ -44,7 +44,7 @@ public interface AnotherFakeApi {
produces = { "application/json" },
consumes = { "application/json" },
method = RequestMethod.PATCH)
- default ResponseEntity testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ default ResponseEntity 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"))) {
diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java
index a6fbf56f5cc..4913752c314 100644
--- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -33,14 +33,14 @@ import java.util.Optional;
@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)
- default ResponseEntity> testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono client, ServerWebExchange exchange) {
+ default ResponseEntity> call123testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Mono client, ServerWebExchange exchange) {
Mono result = Mono.empty();
for (MediaType mediaType : exchange.getRequest().getHeaders().getAccept()) {
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
diff --git a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml
index 526dd125d88..5765e33f9c1 100644
--- a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml
+++ b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml
@@ -1067,8 +1067,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:
diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 2f9f70d8587..aca5f858447 100644
--- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -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 testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ default ResponseEntity 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"))) {
diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java
index 2f9f70d8587..aca5f858447 100644
--- a/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java
+++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/api/AnotherFakeApi.java
@@ -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 testSpecialTags(@ApiParam(value = "client model" ,required=true ) @Valid @RequestBody Client client) {
+ default ResponseEntity 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"))) {