Resolve and inline JSON Schema $ref references in a schema object.
This function processes a JSON Schema and resolves all $ref references by
replacing them with the actual referenced content.
Handles both simple references and complex cases like circular references and mixed
$ref objects that contain additional properties alongside the $ref.
$ref objects (with both $ref and other properties) are supported$refs override resolved properties$defs section is preserved in the output by defaultThe complete schema containing all definitions that $refs might
point to.
If not provided, defaults to schema_obj (useful when the schema is
self-contained).
Controls recursion behavior and reference resolution depth.
None (Default): Only recurse under '$defs' and use shallow
reference resolution (break cycles but don't deep-inline nested refs)[]): Recurse under all keys and use deep reference
resolution (fully inline all nested references)