Skip to content

Description param in Request dataclass is not always as declared #21

@gha88

Description

@gha88

In method parse, defined in request.py, when looking for the description attribute it can be left as a string even if declared as Description.

description = data.get("description") if isinstance(description, dict): description = Description.parse(description)

I can see two possible solution:

  • declare in Request objcet the attribute description as Union[Description|str]
  • convert the string only parameter to a Description object anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions