From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 9 Jun 2025 16:32:34 +0000 (-0700) Subject: Fix: correct api schema for next_asn (#10151) X-Git-Tag: v2.17.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d48e9948796ac03329086db1e2ca164ee31124f;p=thirdparty%2Fpaperless-ngx.git Fix: correct api schema for next_asn (#10151) --- diff --git a/src/documents/views.py b/src/documents/views.py index afd36c7f50..1b9b352263 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -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):