现在progress_type允许为None
This commit is contained in:
@@ -70,7 +70,7 @@ class ProjectResponseBase(BaseResponseWithID):
|
||||
complete_investment: float = Field(0.0, description="完成投资", examples=[80000.0])
|
||||
|
||||
# 其他信息
|
||||
progress_type: ProgressType = Field(..., description="推进分类", examples=[ProgressType.A])
|
||||
progress_type: ProgressType | None = Field(None, description="推进分类", examples=[ProgressType.A])
|
||||
key_constraints: KeyConstraints = Field(KeyConstraints.NONE, description="关键制约", examples=[KeyConstraints.NONE])
|
||||
key_constraints_remark: Optional[str] = Field("", description="关键制约备注", examples=["无"])
|
||||
status: Optional[str] = Field(None, description="项目状态")
|
||||
|
||||
Reference in New Issue
Block a user