transform
Transforms a type graph into a JSON Schema JsonObject.
This method uses TypeGraphToJsonSchemaTransformer to ensure consistent type conversion, but adds all nodes to $defs (matching the old TypeGraphToJsonObjectSchemaTransformer behavior).
Return
JSON Schema as a JsonObject
Parameters
graph
Type graph with all type definitions
root Name
Schema name