Skip to content

[BUG] Role model updates #61

@takos22

Description

@takos22

The UpdateRoleBody and NewRoleBody have some issues and need some updates, here are the needed updates:

  1. 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)

  2. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions