drf-yasg
drf-yasg copied to clipboard
Support nested coreschema in CoreAPI compat layer
class MyFilterBackend(BaseFilterBackend):
def get_schema_fields(self, view):
return [coreapi.Field(
name="values"
required=False,
schema=coreschema.Array(items=coreschema.Integer(), unique_items=True),
location='query'
)]
Result:
This is not currently supported. While it would be nice, the way to do it now is to create a FilterInspector.