Constructors
constructor
- new SchemaType(manager, fields, name?): SchemaType
Properties
Protected
Readonly
fields
Protected
manager
Readonly
name
name: string
Methods
partial
- partial(): SchemaType
pick
- pick(...fieldNames): SchemaType
Parameters
Rest
...fieldNames: string[]
required
- required(): SchemaType
swaggerValue
- swaggerValue(): {
properties: Record<string, any>;
required: string[];
} Returns {
properties: Record<string, any>;
required: string[];
}
ISchemaTypeFieldInfo
properties: Record<string, any>
required: string[]
value
- value(input, isArray?): ISchemaCheckResult
Parameters
input: any
Optional
isArray: boolean
从当前Schema获取所有字段为可选的新Schema