Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions