Database model name that this schema maps to.
Specifies which database table/model this DTO type corresponds to after casting. Creates a traceable link between API types and database entities.
Set to the exact model name (e.g., "shopping_customers",
"bbs_articles") when the corrected object schema represents a database
entity
Set to null for:
When null, the specification field becomes critical for downstream
agents to understand how to implement data retrieval or computation.
API documentation for consumers.
Standard OpenAPI description displayed in Swagger UI, SDK documentation, and other API documentation tools. Focus on explaining WHAT the corrected type represents from an API consumer's perspective.
Guidelines:
Object schema definition for the corrected type.
The corrected object structure that replaces the degenerate primitive type. MUST be an object schema with proper properties and required array.
When designing the object schema:
required array based on business rulesImplementation specification for downstream agents.
Detailed guidance on HOW to implement data retrieval, transformation, or computation for this corrected type. Internal documentation for Realize Agent and Test Agent - NOT exposed in public API documentation.
When databaseSchema is set (direct mapping):
When databaseSchema is null (embedded/computed types):
This field is CRITICAL. Must include:
Must be precise enough for downstream agents to implement the actual data retrieval or computation. Vague specifications are unacceptable.
Design structure for casting primitive types to object schemas.
Used when a degenerate primitive type alias (e.g.,
type IPreferences = string) needs to be corrected to a proper object schema. The casting agent analyzes JSDoc descriptions, database hints, and naming conventions to determine the correct object structure.Author
Samchon