Some checks failed
K8S Fission Deployment / Deployment fission functions (push) Failing after 20s
19 lines
768 B
Python
19 lines
768 B
Python
from pydantic import BaseModel, Field
|
|
from typing import Optional
|
|
|
|
|
|
class UserAddressRequest(BaseModel):
|
|
address: str = Field(..., max_length=255)
|
|
area_code: Optional[str] = Field(None, max_length=10)
|
|
city_code: Optional[str] = Field(None, max_length=30)
|
|
district_code: Optional[str] = Field(None, max_length=30)
|
|
is_primary: Optional[bool] = Field(None, description="is primary address ")
|
|
|
|
|
|
class UserAddressUpdateRequest(BaseModel):
|
|
address: Optional[str] = Field(..., max_length=255)
|
|
area_code: Optional[str] = Field(None, max_length=10)
|
|
city_code: Optional[str] = Field(None, max_length=30)
|
|
district_code: Optional[str] = Field(None, max_length=30)
|
|
is_primary: Optional[bool] = Field(None, description="is primary address ")
|