📝 Fix unused `security` field in `EndpointMetadata` and `_BasePayload` (#1499)
We don't use these two things:
1.
security field documentation here:django-modern-rest/dmr/metadata.py
Lines 429 to 430 in f822e35
2. django-modern-rest/dmr/validation/payload.py
Line 44 in f822e35
However, I don't think that this is right. Users must have an option to configure this directly.
Let's create this rule:
• Any user provided
security objects must be saved to the metadata• It must be merged with explicit
auth= providersIt might be useful when people define some external security mechanims, for example that work on HTTP proxy level, or in other microservices.
New snapshot test is required for this change.
#bug #good_first_issue #help_wanted #openapi #opensource_september #django_modern_rest
sent via relator