get_schema_view parameters lack SchemaGenerator parameters · Issue #4751 · encode/django-rest-framework (original) (raw)

Checklist

Steps to reproduce

Call get_schema_view with patterns=something and you get an error because it is not defined.

get_schema_view(title=None, url=None, renderer_classes=None):
     generator = SchemaGenerator(title=title, url=url)

link

but SchemaGenerator object allows:

class SchemaGenerator(object):
    def __init__(self, title=None, url=None, patterns=None, urlconf=None)

Expected behavior

Be able to call get_schema_view with patterns.
I don't know why it is not allowed given that the SchemaGenerator object that is instantiated allows patterns to limit the inspected urls.

Actual behavior

TypeError unexpected keyword argument