Rewrite Ponos patch.yml overrides as Spectacular extensions
Use OpenApiViewExtension
and OpenApiSerializerExtension
to apply all the necessary overrides on Ponos endpoints and serializers. This is probably the longest part of removing patch.yml with Spectacular.
Docs: https://drf-spectacular.readthedocs.io/en/latest/customization.html#step-5-extensions