jsonSchema

Generates a JSON Schema representation for the given type T.

This function attempts to infer the schema from the type's KSerializer. If the type is not serializable, returns a Schema representing a non-serializable type.

Report a problem

Return

A JsonSchema object representing the JSON Schema for type T.