Documentation
    Preparing search index...

    Type Alias IJsonSchemaUnit<Version, Type>

    IJsonSchemaUnit: Version extends "3.0"
        ? IJsonSchemaUnit.IV3_0<Type>
        : IJsonSchemaUnit.IV3_1<Type>

    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.

    The result contains:

    • schema: The main JSON schema for the type
    • components: Shared schemas referenced via $ref
    • __type: Phantom property for TypeScript type inference

    Use this for single-type schema generation. For multiple types, see IJsonSchemaCollection. For function schemas, see IJsonSchemaApplication.

    Type Parameters

    • Version extends "3.0" | "3.1" = "3.1"

      OpenAPI version ("3.0" or "3.1")

    • Type = unknown

      Original TypeScript type

    Jeongho Nam - https://github.com/samchon