Fix new services implementation 7
This commit is contained in:
@@ -95,7 +95,7 @@ class SupplierUpdate(BaseModel):
|
||||
|
||||
class SupplierApproval(BaseModel):
|
||||
"""Schema for supplier approval/rejection"""
|
||||
action: str = Field(..., regex="^(approve|reject)$")
|
||||
action: str = Field(..., pattern="^(approve|reject)$")
|
||||
notes: Optional[str] = None
|
||||
|
||||
|
||||
@@ -288,7 +288,7 @@ class PurchaseOrderStatusUpdate(BaseModel):
|
||||
|
||||
class PurchaseOrderApproval(BaseModel):
|
||||
"""Schema for purchase order approval/rejection"""
|
||||
action: str = Field(..., regex="^(approve|reject)$")
|
||||
action: str = Field(..., pattern="^(approve|reject)$")
|
||||
notes: Optional[str] = None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user