mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-28 21:15:26 -05:00
feat: adding the rest ofthe nutrition properties from schema.org (#4301)
This commit is contained in:
@@ -1,14 +1,24 @@
|
||||
from pydantic import ConfigDict
|
||||
from pydantic.alias_generators import to_camel
|
||||
|
||||
from mealie.schema._mealie import MealieModel
|
||||
|
||||
|
||||
class Nutrition(MealieModel):
|
||||
calories: str | None = None
|
||||
fat_content: str | None = None
|
||||
protein_content: str | None = None
|
||||
carbohydrate_content: str | None = None
|
||||
cholesterol_content: str | None = None
|
||||
fat_content: str | None = None
|
||||
fiber_content: str | None = None
|
||||
protein_content: str | None = None
|
||||
saturated_fat_content: str | None = None
|
||||
sodium_content: str | None = None
|
||||
sugar_content: str | None = None
|
||||
model_config = ConfigDict(from_attributes=True, coerce_numbers_to_str=True)
|
||||
trans_fat_content: str | None = None
|
||||
unsaturated_fat_content: str | None = None
|
||||
|
||||
model_config = ConfigDict(
|
||||
from_attributes=True,
|
||||
coerce_numbers_to_str=True,
|
||||
alias_generator=to_camel,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user