Resolve "Refactor mutations endpoints"
This commit is contained in:
parent
6a51b8f109
commit
ff1a614861
|
@ -53,9 +53,6 @@ def custom_preprocessing_hook(endpoints):
|
|||
if path.startswith("/api/v1/users/users"):
|
||||
continue
|
||||
|
||||
if path.startswith("/api/v1/mutations"):
|
||||
continue
|
||||
|
||||
if path.startswith(f"/api/{api_type}"):
|
||||
filtered.append((path, path_regex, method, callback))
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
from django import forms
|
||||
from django.db.models import Q
|
||||
|
||||
from drf_spectacular.utils import extend_schema_field
|
||||
|
||||
from django_filters import widgets
|
||||
from django_filters import rest_framework as filters
|
||||
|
||||
|
@ -52,6 +54,7 @@ class CoerceChoiceField(forms.ChoiceField):
|
|||
raise forms.ValidationError("Invalid value {}".format(value))
|
||||
|
||||
|
||||
@extend_schema_field(bool)
|
||||
class NullBooleanFilter(filters.ChoiceFilter):
|
||||
field_class = CoerceChoiceField
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Make mutations endpoint appear in openapi specs
|
Loading…
Reference in New Issue