mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-24 07:15:24 -07:00
Add back schema examples
This commit is contained in:
parent
409610095b
commit
ce6ef720df
2 changed files with 27 additions and 0 deletions
|
@ -15,6 +15,19 @@ class SiteSettings(CamelModel):
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
orm_mode = True
|
orm_mode = True
|
||||||
|
schema_extra = {
|
||||||
|
"example": {
|
||||||
|
"language": "en",
|
||||||
|
"firstDayOfWeek": 0,
|
||||||
|
"showRecent": True,
|
||||||
|
"categories": [
|
||||||
|
{"id": 1, "name": "thanksgiving", "slug": "thanksgiving"},
|
||||||
|
{"id": 2, "name": "homechef", "slug": "homechef"},
|
||||||
|
{"id": 3, "name": "potatoes", "slug": "potatoes"},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class CustomPageBase(CamelModel):
|
class CustomPageBase(CamelModel):
|
||||||
name: str
|
name: str
|
||||||
|
|
|
@ -12,6 +12,20 @@ class Colors(BaseModel):
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
orm_mode = True
|
orm_mode = True
|
||||||
|
schema_extra = {
|
||||||
|
"example": {
|
||||||
|
"name": "default",
|
||||||
|
"colors": {
|
||||||
|
"primary": "#E58325",
|
||||||
|
"accent": "#00457A",
|
||||||
|
"secondary": "#973542",
|
||||||
|
"success": "#5AB1BB",
|
||||||
|
"info": "#4990BA",
|
||||||
|
"warning": "#FF4081",
|
||||||
|
"error": "#EF5350",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class SiteTheme(BaseModel):
|
class SiteTheme(BaseModel):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue