mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-21 22:13:31 -07:00
Fix schema example
This commit is contained in:
parent
ce6ef720df
commit
8dcbe4a474
1 changed files with 8 additions and 8 deletions
|
@ -10,6 +10,14 @@ class Colors(BaseModel):
|
|||
warning: str = "#FF4081"
|
||||
error: str = "#EF5350"
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
||||
|
||||
class SiteTheme(BaseModel):
|
||||
name: str = "default"
|
||||
colors: Colors = Colors()
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
schema_extra = {
|
||||
|
@ -26,11 +34,3 @@ class Colors(BaseModel):
|
|||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class SiteTheme(BaseModel):
|
||||
name: str = "default"
|
||||
colors: Colors = Colors()
|
||||
|
||||
class Config:
|
||||
orm_mode = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue