mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-08 15:53:54 +00:00
[Python] fix api file name & api var name (#11051)
* fix api filename * fix PythonCodeGen toApiVarName * add samples change
This commit is contained in:
@@ -21,7 +21,7 @@ To test class name in snake case
|
||||
```python
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.api import fake_classname_tags_123_api
|
||||
from petstore_api.api import fake_classname_tags123_api
|
||||
from petstore_api.model.client import Client
|
||||
from pprint import pprint
|
||||
# Defining the host is optional and defaults to http://petstore.swagger.io:80/v2
|
||||
@@ -44,7 +44,7 @@ configuration.api_key['api_key_query'] = 'YOUR_API_KEY'
|
||||
# Enter a context with an instance of the API client
|
||||
with petstore_api.ApiClient(configuration) as api_client:
|
||||
# Create an instance of the API class
|
||||
api_instance = fake_classname_tags_123_api.FakeClassnameTags123Api(api_client)
|
||||
api_instance = fake_classname_tags123_api.FakeClassnameTags123Api(api_client)
|
||||
client = Client(
|
||||
client="client_example",
|
||||
) # Client | client model
|
||||
|
||||
Reference in New Issue
Block a user