mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-04 23:56:09 +00:00
[Python] Add __all__ variable in the package __init__.py file for Python APIs (#21185)
* Add __all__ to the package __init__.py file for Python APIs * Remove empty line before closing bracket * Add missing samples
This commit is contained in:
@@ -17,6 +17,37 @@
|
||||
|
||||
__version__ = "1.0.0"
|
||||
|
||||
# Define package exports
|
||||
__all__ = [
|
||||
"AuthApi",
|
||||
"BodyApi",
|
||||
"FormApi",
|
||||
"HeaderApi",
|
||||
"PathApi",
|
||||
"QueryApi",
|
||||
"ApiResponse",
|
||||
"ApiClient",
|
||||
"Configuration",
|
||||
"OpenApiException",
|
||||
"ApiTypeError",
|
||||
"ApiValueError",
|
||||
"ApiKeyError",
|
||||
"ApiAttributeError",
|
||||
"ApiException",
|
||||
"Bird",
|
||||
"Category",
|
||||
"DataQuery",
|
||||
"DefaultValue",
|
||||
"NumberPropertiesOnly",
|
||||
"Pet",
|
||||
"Query",
|
||||
"StringEnumRef",
|
||||
"Tag",
|
||||
"TestFormObjectMultipartRequestMarker",
|
||||
"TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter",
|
||||
"TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter",
|
||||
]
|
||||
|
||||
# import apis into sdk package
|
||||
from openapi_client.api.auth_api import AuthApi
|
||||
from openapi_client.api.body_api import BodyApi
|
||||
|
||||
Reference in New Issue
Block a user