Skip to content

Conversion of empty string to None #35

@summersz

Description

@summersz

For query and form data, null values are transmitted as empty strings.

I would like to suggest a method to convert these to None during the convert function of the Query class.

I think the user would need to specify that this is the functionality they want. I am thinking either checking for Union[str, None] as the type or adding an extra attribute like allow_none=True.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions