Feature: openapi spec, full api browser (#8948)

This commit is contained in:
shamoon authored and GitHub committed 2025-02-10 16:43:07 +00:00
1 parent c316ae369b
commit 1dc80f04cb
19 files changed
+1048 -255

No files matched your search

+3 -3
View File
@@ -8,13 +8,13 @@ from paperless_mail.models import MailAccount
from paperless_mail.models import MailRule
class ObfuscatedPasswordField(serializers.Field):
class ObfuscatedPasswordField(serializers.CharField):
"""
Sends *** string instead of password in the clear
"""
def to_representation(self, value):
return "*" * len(value)
def to_representation(self, value) -> str:
return "*" * max(10, len(value))
def to_internal_value(self, data):
return data