Skip to content

Commit

Permalink
add base api model (#1298)
Browse files Browse the repository at this point in the history
  • Loading branch information
mike0sv authored Sep 11, 2024
1 parent dc562bc commit 5813560
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/evidently/ui/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from typing import TypeVar

from evidently._pydantic_compat import BaseModel
from evidently._pydantic_compat import Extra
from evidently.base_metric import Metric
from evidently.model.dashboard import DashboardInfo
from evidently.model.widget import BaseWidgetInfo
Expand All @@ -29,6 +30,12 @@
from evidently.ui.type_aliases import UserID


class EvidentlyAPIModel(BaseModel):
# todo: migrate all models to this base
class Config:
extra = Extra.forbid


class MetricModel(BaseModel):
id: str

Expand Down

0 comments on commit 5813560

Please sign in to comment.