Skip to content

Make categories field optional and honor explicit None in File model #29

@kenlhlui

Description

@kenlhlui

Issue

Currently, the File model always falls back to the default ["DATA"] tag—even when you explicitly pass categories=None.

We need to distinguish between “no value provided” (use default) and “explicitly set to None” (send no categories).

Fix

  1. Change the field annotation to Optional of categories to allow None in the File Class in file.py.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions