Fix lint errors

openapi3
Cristi Vîjdea 2018-08-07 21:24:36 +03:00
parent 748b5d3c2f
commit 4c069138e8
1 changed files with 0 additions and 2 deletions

View File

@ -652,7 +652,6 @@ else:
"""Hack to force ``djangorestframework_camel_case`` to camelize a plain string.""" """Hack to force ``djangorestframework_camel_case`` to camelize a plain string."""
return next(iter(camelize({s: ''}))) return next(iter(camelize({s: ''})))
def camelize_schema(schema_or_ref, components): def camelize_schema(schema_or_ref, components):
"""Recursively camelize property names for the given schema using ``djangorestframework_camel_case``.""" """Recursively camelize property names for the given schema using ``djangorestframework_camel_case``."""
schema = openapi.resolve_ref(schema_or_ref, components) schema = openapi.resolve_ref(schema_or_ref, components)
@ -667,7 +666,6 @@ else:
return schema_or_ref return schema_or_ref
class CamelCaseJSONFilter(FieldInspector): class CamelCaseJSONFilter(FieldInspector):
"""Converts property names to camelCase if ``CamelCaseJSONParser`` or ``CamelCaseJSONRenderer`` are used.""" """Converts property names to camelCase if ``CamelCaseJSONParser`` or ``CamelCaseJSONRenderer`` are used."""