跳到主要内容

SchemaType

2025年02月25日
柏拉文
越努力,越幸运

前言


SchemaType API 文档

一、SchemaType()


1.1 认识

SchemaType()

1.2 语法

1.3 用法

二、SchemaType.cast()


2.1 认识

SchemaType.cast()

2.2 语法

2.3 用法

三、SchemaType.checkRequired()


3.1 认识

SchemaType.checkRequired()

3.2 语法

3.3 用法

四、SchemaType.get()


4.1 认识

SchemaType.get()

4.2 语法

4.3 用法

五、SchemaType.prototype.cast()


5.1 认识

SchemaType.prototype.cast()

5.2 语法

5.3 用法

六、SchemaType.prototype.castFunction()


6.1 认识

SchemaType.prototype.castFunction()

6.2 语法

6.3 用法

七、SchemaType.prototype.default()


7.1 认识

SchemaType.prototype.default()

7.2 语法

7.3 用法

八、SchemaType.prototype.doValidate()


8.1 认识

SchemaType.prototype.doValidate()

8.2 语法

8.3 用法

九、SchemaType.prototype.get()


9.1 认识

SchemaType.prototype.get()

9.2 语法

9.3 用法

十、SchemaType.prototype.getEmbeddedSchemaType()


10.1 认识

SchemaType.prototype.getEmbeddedSchemaType()

10.2 语法

10.3 用法

十一、SchemaType.prototype.immutable()


11.1 认识

SchemaType.prototype.immutable()

11.2 语法

11.3 用法

十二、SchemaType.prototype.index()


12.1 认识

SchemaType.prototype.index()

12.2 语法

12.3 用法

十三、SchemaType.prototype.isRequired


13.1 认识

SchemaType.prototype.isRequired

13.2 语法

13.3 用法

十四、SchemaType.prototype.path


14.1 认识

SchemaType.prototype.path

14.2 语法

14.3 用法

十五、SchemaType.prototype.ref()


15.1 认识

SchemaType.prototype.ref()

15.2 语法

15.3 用法

十六、SchemaType.prototype.required()


16.1 认识

SchemaType.prototype.required()

16.2 语法

16.3 用法

十七、SchemaType.prototype.select()


17.1 认识

SchemaType.prototype.select()

17.2 语法

17.3 用法

十八、SchemaType.prototype.set()


18.1 认识

SchemaType.prototype.set()

18.2 语法

18.3 用法

十九、SchemaType.prototype.sparse()


19.1 认识

SchemaType.prototype.sparse()

19.2 语法

19.3 用法

二十、SchemaType.prototype.text()


20.1 认识

SchemaType.prototype.text()

20.2 语法

20.3 用法

二十一、SchemaType.prototype.toJSONSchema()


21.1 认识

SchemaType.prototype.toJSONSchema()

21.2 语法

21.3 用法

二十二、SchemaType.prototype.transform()


22.1 认识

SchemaType.prototype.transform()

22.2 语法

22.3 用法

二十三、SchemaType.prototype.unique()


23.1 认识

SchemaType.prototype.unique()

23.2 语法

23.3 用法

二十四、SchemaType.prototype.validate()


24.1 认识

SchemaType.prototype.validate()

24.2 语法

24.3 用法

二十五、SchemaType.prototype.validateAll()


25.1 认识

SchemaType.prototype.validateAll()

25.2 语法

25.3 用法

二十六、SchemaType.prototype.validators


26.1 认识

SchemaType.prototype.validators

26.2 语法

26.3 用法

二十七、SchemaType.set()


27.1 认识

SchemaType.set()

27.2 语法

27.3 用法