transform

open override fun transform(graph: TypeGraph, rootName: String): JsonObject(source)

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

rootName

Schema name