RootCauseunvalidated

created_by": { "fname": "System", "sname": "Default", "full_name": "System Default" } — two of the fields refer to another model, StaffMember. Tension: I don't want any nested fields. Outcome: This will work as a FastAPI response model, but will still generate an unnested JSON schema in the OpenAPI documentation.

2088604f-d8f2-47ac-b195-f31a87c59660

created_by": { "fname": "System", "sname": "Default", "full_name": "System Default" } — two of the fields refer to another model, StaffMember. Tension: I don't want any nested fields. Outcome: This will work as a FastAPI response model, but will still generate an unnested JSON schema in the OpenAPI documentation.