Single JSON schema unit for one TypeScript type.
IJsonSchemaUnit represents a complete JSON schema for a single TypeScript type, including the main schema definition and any referenced component schemas. Generated by typia.json.schema<T>() at compile time.
IJsonSchemaUnit
typia.json.schema<T>()
The result contains:
$ref
Use this for single-type schema generation. For multiple types, see IJsonSchemaCollection. For function schemas, see IJsonSchemaApplication.
OpenAPI version ("3.0" or "3.1")
Original TypeScript type
Jeongho Nam - https://github.com/samchon
Single JSON schema unit for one TypeScript type.
IJsonSchemaUnitrepresents a complete JSON schema for a single TypeScript type, including the main schema definition and any referenced component schemas. Generated bytypia.json.schema<T>()at compile time.The result contains:
$refUse this for single-type schema generation. For multiple types, see IJsonSchemaCollection. For function schemas, see IJsonSchemaApplication.