mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 15:32:43 +00:00
Fix thousands of spelling typos (#10272)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
||||
#
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
|
||||
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
||||
|
||||
git_user_id=$1
|
||||
git_repo_id=$2
|
||||
|
||||
@@ -588,12 +588,12 @@ class ApiClient(object):
|
||||
else:
|
||||
return content_types[0]
|
||||
|
||||
def update_params_for_auth(self, headers, querys, auth_settings,
|
||||
def update_params_for_auth(self, headers, queries, auth_settings,
|
||||
resource_path, method, body):
|
||||
"""Updates header and query params based on authentication setting.
|
||||
|
||||
:param headers: Header parameters dict to be updated.
|
||||
:param querys: Query parameters tuple list to be updated.
|
||||
:param queries: Query parameters tuple list to be updated.
|
||||
:param auth_settings: Authentication setting identifiers list.
|
||||
:param resource_path: A string representation of the HTTP request resource path.
|
||||
:param method: A string representation of the HTTP request method.
|
||||
@@ -612,7 +612,7 @@ class ApiClient(object):
|
||||
if auth_setting['type'] != 'http-signature':
|
||||
headers[auth_setting['key']] = auth_setting['value']
|
||||
elif auth_setting['in'] == 'query':
|
||||
querys.append((auth_setting['key'], auth_setting['value']))
|
||||
queries.append((auth_setting['key'], auth_setting['value']))
|
||||
else:
|
||||
raise ApiValueError(
|
||||
'Authentication token must be in `query` or `header`'
|
||||
|
||||
@@ -301,7 +301,7 @@ class Cat(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -298,7 +298,7 @@ class Child(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -297,7 +297,7 @@ class ChildCat(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -297,7 +297,7 @@ class ChildDog(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -297,7 +297,7 @@ class ChildLizard(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -301,7 +301,7 @@ class Dog(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -294,7 +294,7 @@ class Parent(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -301,7 +301,7 @@ class ParentPet(ModelComposed):
|
||||
# we need this here to make our import statements work
|
||||
# we must store _composed_schemas in here so the code is only run
|
||||
# when we invoke this method. If we kept this at the class
|
||||
# level we would get an error beause the class level
|
||||
# level we would get an error because the class level
|
||||
# code would be run when this module is imported, and these composed
|
||||
# classes don't exist yet because their module has not finished
|
||||
# loading
|
||||
|
||||
@@ -446,7 +446,7 @@ class ModelSimple(OpenApiModel):
|
||||
)
|
||||
|
||||
def __contains__(self, name):
|
||||
"""used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`"""
|
||||
"""used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
|
||||
if name in self.required_properties:
|
||||
return name in self.__dict__
|
||||
|
||||
@@ -501,7 +501,7 @@ class ModelNormal(OpenApiModel):
|
||||
)
|
||||
|
||||
def __contains__(self, name):
|
||||
"""used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`"""
|
||||
"""used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
|
||||
if name in self.required_properties:
|
||||
return name in self.__dict__
|
||||
|
||||
@@ -648,7 +648,7 @@ class ModelComposed(OpenApiModel):
|
||||
return value
|
||||
|
||||
def __contains__(self, name):
|
||||
"""used by `in` operator to check if an attrbute value was set in an instance: `'attr' in instance`"""
|
||||
"""used by `in` operator to check if an attribute value was set in an instance: `'attr' in instance`"""
|
||||
|
||||
if name in self.required_properties:
|
||||
return name in self.__dict__
|
||||
|
||||
Reference in New Issue
Block a user