forked from loafle/openapi-generator-original
Better handling of operationID starting with numbers (#691)
* add numeric operationid to test spec * better handling of operationId in more generators * fix go toOperationId * update samples * update java samples * update java samples (vertx, webclient) * update java google api client sample * fix typo, update OAS3 test spec, update php petstore (oas3) * defer camelize in operationid * remove duplicated sanitizeName
This commit is contained in:
@@ -47,18 +47,18 @@ public class AnotherFakeApi {
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param client client model
|
||||
* @return Client
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public Client testSpecialTags(Client client) throws RestClientException {
|
||||
public Client call123testSpecialTags(Client client) throws RestClientException {
|
||||
Object postBody = client;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testSpecialTags");
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
String path = UriComponentsBuilder.fromPath("/another-fake/dummy").build().toUriString();
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user