fix(phase1): add photo fields to schemas and set datetime default
This commit is contained in:
@@ -107,7 +107,7 @@ def create_item(
|
||||
detail={
|
||||
"message": f"Item with Part Number '{item.barcode}' already exists in inventory.",
|
||||
"existing_id": existing.id,
|
||||
"existing_item": schemas.Item.model_validate(existing).model_dump()
|
||||
"existing_item": schemas.Item.model_validate(existing).model_dump(mode='json')
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user