openapi-pydantic icon indicating copy to clipboard operation
openapi-pydantic copied to clipboard

De-constructing/Resolving reference objects?

Open RamiAwar opened this issue 1 year ago • 2 comments

Is there a way of turning the reference objects back into the data structs they're referencing?

My usecase is I have arbitrary OpenAPI specs and I want to be able to transform any endpoint into a self-descriptive json blob. That means I can't have any references inside, I want to resolve them all.

Is there a way of doing so currently? Couldn't find any in the utils forward, although I found this happening the other way around.

RamiAwar avatar Mar 17 '25 20:03 RamiAwar

Hi @RamiAwar - at the moment there is no reference resolver support in the library (also mentioned in #41) - i'd be happy to accept contributions to add the functionality however!

mike-oakley avatar Mar 22 '25 10:03 mike-oakley

Will look into itt

RamiAwar avatar Mar 25 '25 19:03 RamiAwar