Fix lint errors
This commit is contained in:
@@ -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."""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user