Fix: correct api schema for next_asn (#10151)

This commit is contained in:
shamoon 2025-06-09 09:32:34 -07:00 committed by GitHub
parent 454a2d9e9e
commit 8d48e99487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1099,6 +1099,12 @@ class DocumentViewSet(
200: DocumentSerializer(many=True, all_fields=True),
},
),
next_asn=extend_schema(
description="Get the next available Archive Serial Number (ASN) for a new document",
responses={
200: OpenApiTypes.INT,
},
),
)
class UnifiedSearchViewSet(DocumentViewSet):
def __init__(self, *args, **kwargs):