AutoBE
    Preparing search index...

    Interface AutoBeInterfaceSchemaDesign

    Design structure for creating OpenAPI schema components.

    Separates schema metadata from the actual JSON Schema definition, allowing clear organization of implementation details (specification), API documentation (description), and the type structure (schema).

    The specification and description fields are documented at the design level, separate from the schema field which holds the pure type structure.

    Samchon

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

    Properties

    databaseSchema: string | null

    Database model name that this schema maps to.

    Specifies which database table/model this DTO type corresponds to. Creates a traceable link between API types and database entities.

    • Set to the exact model name (e.g., "shopping_customers", "bbs_articles") when this schema directly represents or derives from a database entity

    • Set to null for:

      • Computed/aggregated types (e.g., statistics, summaries from multiple tables)
      • Types composed purely by business logic (e.g., search filters, pagination)
      • Embedded JSON structures without dedicated tables

    When null, the specification field becomes critical for downstream agents to understand how to implement data retrieval or computation.

    description: string

    API documentation for consumers.

    Standard OpenAPI description displayed in Swagger UI, SDK documentation, and other API documentation tools. Focus on explaining WHAT the type represents and WHY it exists from an API consumer's perspective.

    Guidelines:

    • Reference corresponding database schema documentation for consistency
    • Organize into multiple paragraphs for complex types
    • Focus on business meaning, relationships, and constraints
    • Keep accessible to API consumers (no implementation details)
    • MUST be written in English

    JSON Schema definition for the type.

    The actual type structure following OpenAPI v3.1 JSON Schema specification. Can be any valid JSON Schema type: object, array, string, number, integer, boolean, oneOf, or $ref.

    Important:

    • For union types, use oneOf - NEVER use array notation in type field
    • For nullable types, use oneOf: [{ type: "..." }, { type: "null" }]
    • Object properties should have clear, descriptive names in camelCase
    • Use $ref for referencing other named schemas
    specification: string

    Implementation specification for downstream agents.

    Detailed guidance on HOW to implement data retrieval, transformation, or computation for this type. Internal documentation for Realize Agent, Test Agent, and other implementation agents - NOT exposed in public API docs.

    When databaseSchema is set (direct mapping):

    • Can be brief for simple cases
    • Focus on any non-obvious mapping details

    When databaseSchema is null (computed/aggregated types):

    This field is CRITICAL. Must include:

    • Source tables and columns involved
    • JOIN conditions between tables
    • Aggregation formulas (SUM, COUNT, AVG, etc.)
    • Business rules and transformation logic
    • Edge cases (nulls, empty sets, defaults)

    Must be precise enough for downstream agents to implement the actual data retrieval or computation. Vague specifications are unacceptable.