mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-14 13:40:55 +00:00
* [python] Support aliasing of API keys * Support for aliasing and prefix * Make more realistic usage * Regenerate * Document alias in generated code * Support override of aliased keys * Use diferent id and name for api keys * ensure up-to-date * Simple example without x-auth-id-alias * regenerate docs * Regenerate * Provide separate spec for x-auth-id-alias * Apply suggestions from code review * regenerated
50 lines
1.2 KiB
Python
50 lines
1.2 KiB
Python
# coding: utf-8
|
|
|
|
"""
|
|
OpenAPI Extension x-auth-id-alias
|
|
|
|
This specification shows how to use x-auth-id-alias extension for API keys. # noqa: E501
|
|
|
|
The version of the OpenAPI document: 1.0.0
|
|
Generated by: https://openapi-generator.tech
|
|
"""
|
|
|
|
|
|
from setuptools import setup, find_packages # noqa: H301
|
|
|
|
NAME = "x-auth-id-alias"
|
|
VERSION = "1.0.0"
|
|
# To install the library, run the following
|
|
#
|
|
# python setup.py install
|
|
#
|
|
# prerequisite: setuptools
|
|
# http://pypi.python.org/pypi/setuptools
|
|
|
|
REQUIRES = [
|
|
"urllib3 >= 1.15",
|
|
"six >= 1.10",
|
|
"certifi",
|
|
"python-dateutil",
|
|
"nulltype",
|
|
]
|
|
EXTRAS = {':python_version <= "2.7"': ['future']}
|
|
|
|
setup(
|
|
name=NAME,
|
|
version=VERSION,
|
|
description="OpenAPI Extension x-auth-id-alias",
|
|
author="OpenAPI Generator community",
|
|
author_email="team@openapitools.org",
|
|
url="",
|
|
keywords=["OpenAPI", "OpenAPI-Generator", "OpenAPI Extension x-auth-id-alias"],
|
|
install_requires=REQUIRES,
|
|
extras_require=EXTRAS,
|
|
packages=find_packages(exclude=["test", "tests"]),
|
|
include_package_data=True,
|
|
license="Apache-2.0",
|
|
long_description="""\
|
|
This specification shows how to use x-auth-id-alias extension for API keys. # noqa: E501
|
|
"""
|
|
)
|