Feature request: Add FieldInfo.asdict() method for safe introspection
Feature request: Add FieldInfo.asdict() method for safe introspection: a task in LegoFlow-SWE (Harbor dataset). Pydantic's FieldInfo class holds many field configuration attributes (e.g., default , annotation , alias , metadata , etc.), but there is no public, documented way to obtain all of them…
The task
Pydantic's `FieldInfo` class holds many field configuration attributes (e.g., `default`, `annotation`, `alias`, `metadata`, etc.), but there is no public, documented way to obtain all of them in a single dictionary. Third‑party libraries and advanced users often need to inspect or derive new field definitions from…
Part of Lego-X/LegoFlow-SWE.