Skip to content

Commit 75f7f96

Browse files
committed
updated router deprecated tag parameter
1 parent 1e4b4b9 commit 75f7f96

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,14 @@ You can also try the [quick-project](https://python-ellar.github.io/ellar/quick-
133133
## **Project Status**
134134

135135
Currently, Ellar is in beta version with the following status:
136+
136137
- Documentation: 95% complete
137138
- Authentication and Authorization: In progress
138139

139140
## **Dependency Summary**
140141

141142
Ellar has the following dependencies:
143+
142144
- Python >= 3.7
143145
- Starlette
144146
- Pydantic

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,14 @@ if __name__ == "__main__":
129129
## **Project Status**
130130

131131
Currently, Ellar is in beta version with the following status:
132+
132133
- Documentation: 95% complete
133134
- Authentication and Authorization: In progress
134135

135136
## **Dependency Summary**
136137

137138
Ellar has the following dependencies:
139+
138140
- Python >= 3.7
139141
- Starlette
140142
- Pydantic

docs/overview/module-router.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ from ellar.openapi import ApiTags
2626

2727
math_router = ModuleRouter('/math')
2828
open_api_tag = ApiTags(name='Math')
29-
open_api_tag(math_router.get_control_type())
29+
open_api_tag(math_router)
3030

3131
@math_router.get('/add')
3232
def addition(a: int, b: int):
@@ -87,7 +87,7 @@ from ellar.core import Request
8787
from ellar.common import ModuleRouter, Response
8888

8989

90-
math_router = ModuleRouter('/math', tag='Math')
90+
math_router = ModuleRouter('/math', name='Math')
9191

9292
@math_router.get('/add')
9393
def addition(request: Request, res: Response, a:int, b:int):
@@ -104,7 +104,7 @@ from ellar.core import Request
104104
from ellar.common import ModuleRouter,Response, Inject
105105

106106

107-
math_router = ModuleRouter('/math', tag='Math')
107+
math_router = ModuleRouter('/math', name='Math')
108108

109109
@math_router.get('/add')
110110
def addition(request:Inject[Request], res:Inject[Response], a:int, b:int):
@@ -123,7 +123,7 @@ from ellar.core import Config
123123
from ellar.common import ModuleRouter, Response, Inject
124124

125125

126-
math_router = ModuleRouter('/math', tag='Math')
126+
math_router = ModuleRouter('/math', name='Math')
127127

128128
@math_router.get('/subtract')
129129
def subtraction(a:int, b:int, res:Response, config:Inject[Config]):

0 commit comments

Comments
 (0)