Étienne Noss

Results 10 comments of Étienne Noss

Hello, you can't have 2 serializers with the same name, the error message explains what you can do to fix the issue.

You can write your own `PaginationInspector` subclass and make DRF use it, either through the [`DEFAULT_PAGINATION_INSPECTOR`](https://drf-yasg.readthedocs.io/en/stable/drf_yasg.html#drf_yasg.utils.swagger_auto_schema) setting or as an argument to [`swagger_auto_schema`](https://drf-yasg.readthedocs.io/en/stable/drf_yasg.html#drf_yasg.utils.swagger_auto_schema).

Hello, any news on this ? That would be a nice feature to have. I could help finish this PR if needed.

Hello, No problem, I'll try to get back on it and open a separate PR for the tests when I have time.

Hello, As mentioned in the docs (https://drf-yasg.readthedocs.io/en/stable/custom_spec.html#excluding-endpoints), you'd have to decorate the excluded endpoints with `swagger_auto_schema` and pass it `auto_schema=None`. Example: ```python class MyViewSet(viewsets.ModelViewSet): @swagger_auto_schema(auto_schema=None) def list(self, request, *args, **kwargs):...

You could decorate all of your viewset's methods the same way to exclude them all (you can use Django's `method_decorator` as described in [swagger_auto_schema's docs](https://drf-yasg.readthedocs.io/en/stable/custom_spec.html#the-swagger-auto-schema-decorator)). If this seems a bit...

I think the way to go would be to [subclass `SwaggerAutoSchema`](https://drf-yasg.readthedocs.io/en/stable/custom_spec.html#swaggerautoschema) and to override the [`get_tags()`](https://drf-yasg.readthedocs.io/en/stable/drf_yasg.html#drf_yasg.inspectors.SwaggerAutoSchema.get_tags) method to return the tags you want. Note that you don't only have to...

I think you could use the [`swagger_auto_schema`](https://drf-yasg.readthedocs.io/en/stable/custom_spec.html#the-swagger-auto-schema-decorator) decorator and provide `manual_parameters`, or [subclass `SwaggerAutoSchema`](https://drf-yasg.readthedocs.io/en/stable/custom_spec.html#swaggerautoschema) to customize the parameter generation process.

Hello, Take a look at #491 as for why the `DEFAULT_API_URL` is ignored. In your case, the proxy config might be wrong & thus Django might simply not know it...

> request tracing is non-existent in my system, so it is hard to know where they get striped if they do. Since everything behind the proxy is HTTP-only, I typically...