Simplify/distill/minify a spec somehow.
I want a smaller target for retrieval and (more importantly) I want smaller results from retrieval. I was hoping https://openapi.tools/ would have some useful bits to this end, but doesn't seem so.
reduce_openapi_spec(
spec: dict,
dereference: bool = True,
) -> ReducedOpenAPISpec