Skip to content

Commit

Permalink
fix: Invalid Pydantic Definition On Group Model (#3264)
Browse files Browse the repository at this point in the history
* fixed ambiguous pydantic definition

* removed unused import
  • Loading branch information
michael-genson authored Mar 7, 2024
1 parent e7ae76e commit b1278b4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mealie/schema/user/user.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta
from pathlib import Path
from typing import Annotated, Any
from typing import Annotated
from uuid import UUID

from pydantic import UUID4, ConfigDict, Field, StringConstraints, field_validator
Expand All @@ -12,6 +12,7 @@
from mealie.db.models.users.users import AuthMethod
from mealie.schema._mealie import MealieModel
from mealie.schema.group.group_preferences import ReadGroupPreferences
from mealie.schema.group.webhook import CreateWebhook, ReadWebhook
from mealie.schema.recipe import RecipeSummary
from mealie.schema.response.pagination import PaginationBase

Expand Down Expand Up @@ -180,12 +181,14 @@ class UpdateGroup(GroupBase):
slug: str
categories: list[CategoryBase] | None = []

webhooks: list[Any] = []
webhooks: list[CreateWebhook] = []


class GroupInDB(UpdateGroup):
users: list[UserOut] | None = None
preferences: ReadGroupPreferences | None = None
webhooks: list[ReadWebhook] = []

model_config = ConfigDict(from_attributes=True)

@staticmethod
Expand Down

0 comments on commit b1278b4

Please sign in to comment.