Inlines nested $ref pointers recursively, resolves circular references safely, and sanitizes OpenAPI 3.1 quirks for 100% flawless import on RapidAPI Studio, Postman, and AWS API Gateway.
Recursively traverses all $ref pointers in parameters, request bodies, and responses. Replaces them with complete inlined JSON Schemas so parser errors vanish.
Deep graph analysis tracks recursive references (e.g. Tree -> Node -> Tree) and safely terminates recursion with an open schema, preventing stack overflows.
Converts multi-type arrays (e.g. type: ["string", "null"]) to standard 3.0 nullable: true properties required by RapidAPI Studio and Postman.