Skip to content

Commit 129c501

Browse files
author
Zhongyuan Zhang
committed
Add 'docs_decorator' parameter from NinjaAPI to NinjaExtraAPI
1 parent a226989 commit 129c501

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ninja_extra/main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from ninja.constants import NOT_SET
1010
from ninja.parser import Parser
1111
from ninja.renderers import BaseRenderer
12+
from ninja.types import TCallable
1213

1314
from ninja_extra import exceptions, router
1415
from ninja_extra.compatible import NOT_SET_TYPE
@@ -29,6 +30,7 @@ def __init__(
2930
description: str = "",
3031
openapi_url: Optional[str] = "/openapi.json",
3132
docs_url: Optional[str] = "/docs",
33+
docs_decorator: Optional[Callable[[TCallable], TCallable]] = None,
3234
urls_namespace: Optional[str] = None,
3335
csrf: bool = False,
3436
auth: Union[Sequence[Callable], Callable, NOT_SET_TYPE] = NOT_SET,
@@ -42,6 +44,7 @@ def __init__(
4244
description=description,
4345
openapi_url=openapi_url,
4446
docs_url=docs_url,
47+
docs_decorator=docs_decorator,
4548
urls_namespace=urls_namespace,
4649
csrf=csrf,
4750
auth=auth,

0 commit comments

Comments
 (0)