[product] return code in response
Some checks are pending
Python lint and test / linttest (push) Waiting to run
Some checks are pending
Python lint and test / linttest (push) Waiting to run
This commit is contained in:
parent
d66eb8affa
commit
a701b952e8
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
from pydantic import BaseModel
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Product(BaseModel):
|
||||
"""Product."""
|
||||
|
@ -12,6 +13,7 @@ class Product(BaseModel):
|
|||
carb: float
|
||||
fat: float
|
||||
fiber: float
|
||||
barcode: str | None
|
||||
|
||||
class Config:
|
||||
from_attributes = True
|
||||
|
|
Loading…
Reference in a new issue