Skip to content

JSON serialization in FieldInfoModel causes unnecessary double conversion in generators #52

@azmeuk

Description

@azmeuk

FieldInfoModel converts values (default, examples) to JSON strings at model creation. Generators needing native values
(e.g., TOML) must json.loads() them back, then re-serialize to their target format.

I suggest that FieldInfoModel keep raw values instead of JSON serialized values, and raw annotations, and let the generator handle these raw data as they need.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions