The UpdateRoleBody and NewRoleBody have some issues and need some updates, here are the needed updates:
-
The UpdateRoleBody.name has a max_length of 64 instead of the 32 in NewRoleBody.name.
|
name: str = Field("", min_length=4, max_length=64) |
-
The NewRoleBody.color and UpdateRoleBody.color could use a pydantic.Color field instead of the current int field.
|
color: Optional[int] = Field(None, le=0xFFFFFF, ge=0) |
|
color: Optional[int] = Field(None, le=0xFFFFFF, ge=0) |
The
UpdateRoleBodyandNewRoleBodyhave some issues and need some updates, here are the needed updates:The
UpdateRoleBody.namehas amax_lengthof 64 instead of the 32 inNewRoleBody.name.API/api/versions/v1/routers/roles/models.py
Line 24 in 261ecd3
The
NewRoleBody.colorandUpdateRoleBody.colorcould use apydantic.Colorfield instead of the currentintfield.API/api/versions/v1/routers/roles/models.py
Line 19 in 261ecd3
API/api/versions/v1/routers/roles/models.py
Line 25 in 261ecd3