Skip to content

Commit f31bee1

Browse files
committed
Fixed swagger docs loading issue.
1 parent 1b1c2a9 commit f31bee1

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

backend/app/schemas/features.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ class FeatureUpdate(CustomPydanticBase):
3535

3636
Tortoise.init_models(["app.models.features"], "models")
3737

38-
FeatureOut = pydantic_model_creator(Feature)
38+
FeatureOut = pydantic_model_creator(Feature, name="models.Feature")

backend/app/schemas/guests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ class GuestUpdate(CustomPydanticBase):
1818

1919
Tortoise.init_models(["app.models.guests"], "models")
2020

21-
GuestOut = pydantic_model_creator(Guest)
21+
GuestOut = pydantic_model_creator(Guest, name="models.Guest")

backend/app/services/__init__.py

Whitespace-only changes.

backend/app/services/features.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from slugify import slugify
1+
from slugify import slugify # type: ignore
22

33

44
def feature_with_slug_exists(slug: str) -> bool:

0 commit comments

Comments
 (0)