Class SchemaType

Constructors

  • Parameters

    Returns SchemaType

Properties

manager: SchemaManager
name: string

Methods

  • 从当前Schema获取所有字段为可选的新Schema

    Returns SchemaType

  • 从当前Schema获取仅包含指定字段的新Schema

    Parameters

    • Rest ...fieldNames: string[]

    Returns SchemaType

  • 从当前Schema获取所有字段为必填的新Schema

    Returns SchemaType

  • 获取 schema swagger 的展开信息

    Returns {
        properties: Record<string, any>;
        required: string[];
    }

    ISchemaTypeFieldInfo

    • properties: Record<string, any>
    • required: string[]

    Memberof

    SchemaType

  • 检查Schema并返回值

    Parameters

    • input: any
    • Optional isArray: boolean

    Returns ISchemaCheckResult

Generated using TypeDoc