ReflectionJsonSchemaInference
Infers JSON schema from reflection.
Designed for JVM servers where other frameworks (Jackson/Gson/etc.) may control JSON shape. This implementation can be extended by providing custom adapter.
Notes / limitations:
No $ref/component extraction is done here (schemas are expanded inline).
Cycles are guarded to avoid stack overflows, but will degrade to a generic OBJECT schema.
Functions
Link copied to clipboard
Link copied to clipboard
Creates an object schema for kClass with properties inferred from Kotlin reflection.
Link copied to clipboard