Re:Visualize FastAPI endpoints with FastAPI-Voyager
by Noumenon72 on Sunday November 09, 2025 @07:12PM
(#45870670)
So this isn't really "visualize FastAPI endpoints", it's "visualize the inheritance cascade caused by using the pydantic-resolve approach to data fetching/transformation, which involves adding post-hooks to compositions of Pydantic objects". A vanilla FastAPI user like myself is going to have trouble understanding it without realizing how tied it is to that framework.
Re:Visualize FastAPI endpoints with FastAPI-Voyager
by nine_k on Sunday November 09, 2025 @08:00PM
(#45870983)
While at it, what do you use to parse / validate / cast request data into nice typechecked objects?
Re:Visualize FastAPI endpoints with FastAPI-Voyager
by tank-34 on Tuesday November 11, 2025 @01:06AM
(#45884554)
the return value in resolve/post method will be automatically validated by the pydantic class defined in field annotation.
Re:Visualize FastAPI endpoints with FastAPI-Voyager
by tank-34 on Sunday November 09, 2025 @08:09PM
(#45871027)
it's not bound with pydantic-resolve, for vanilla fastapi user if the business model are well designed and composed, it can benefited from this visualization approach too.
the goal is to make the dependencies clear for developers, and figure out the potential impacts from one node to others.
pydantic-resolve is just another my project to make the process of data composition close to ER model and get rid of glue codes like 'for loops'.
Re:Visualize FastAPI endpoints with FastAPI-Voyager
by tank-34 on Tuesday November 11, 2025 @01:14AM
(#45884587)
to better describe the relationship, it borrows the concept 'subset' from pydantic-resolve, which act like pick several fields from original class but you can still reference to it.
@subset(User) class PickedUser: ....
those are clusters based on modules, you can swith off by toggle 'show module cluster'