AutoBE
    Preparing search index...

    Interface AutoBeInterfaceSchemaCasting

    Design structure for casting a degenerate primitive type to an object schema.

    Used when a primitive alias (e.g., type IPreferences = string) needs correction to a proper object schema based on JSDoc, DB hints, and naming.

    Samchon

    interface AutoBeInterfaceSchemaCasting {
        databaseSchema: string | null;
        description: string;
        schema: AutoBeOpenApi.IJsonSchema.IObject;
        specification: string;
    }
    Index

    Properties

    databaseSchema: string | null

    Database model name after casting, or null for embedded/computed types.

    When null, specification becomes critical for downstream agents.

    description: string

    API documentation for consumers (Swagger UI). Focus on WHAT the corrected type represents. No implementation details.

    Format: summary sentence first, \n\n, then paragraphs grouped by topic.

    MUST be written in English.

    Corrected object schema replacing the degenerate primitive. MUST be an object schema with properties and required array.

    specification: string

    Implementation guidance for downstream agents. NOT exposed in public API docs.

    When databaseSchema is set: brief mapping details. When null: MUST include source tables, parsing/serialization requirements, validation rules, and edge cases.