Better handling of operationID starting with numbers (#691)

* add numeric operationid to test spec

* better handling of operationId in more generators

* fix go toOperationId

* update samples

* update java samples

* update java samples (vertx, webclient)

* update java google api client sample

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

* defer camelize in operationid

* remove duplicated sanitizeName
This commit is contained in:
William Cheng
2018-08-01 22:31:58 +08:00
committed by GitHub
parent 21141f682f
commit ab08dd1d26
113 changed files with 441 additions and 417 deletions

View File

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