Replies: 4 comments 5 replies
-
校验器这里想提一个建议,能否给所有的校验器都提供单独的配置语法糖。 目前校验器的配置是直接配置在 var.type 中的,例如
目前只对于 ref 校验器 和 path 校验器,提供了这样的语法糖
对于其他的校验器,例如 range 校验器,size校验器 和 set 校验器,应该是没有这种语法糖的。
希望 var.{{validatorName}} = xxx 这种语法糖能对所有类型的校验器都生效,这样可以方便在配置字段时把 字段类型定义 和 字段校验配置 区分开。 |
Beta Was this translation helpful? Give feedback.
-
关于校验器的另一个建议:对于 ref 引用校验,能否支持索引普通 map 表主键之外的其他子字段。 例如: 表 A 中有字段 keyA 和 xA, 目前 ref 校验对于 map 表只能索引主键。如果需要索引其他字段,需要把该表改为 list 独立多主键表。 但我项目中的一些表,运行时仅仅需要有一个主键就够了,只在校验的时候才需要索引其他子字段。 |
Beta Was this translation helpful? Give feedback.
-
校验器建议:对于 path 校验,需要支持结尾添加 "?" 的方式忽略空白值。 ref 校验是支持忽略空白值的,例如 对于 path 校验,也需要同样的功能,例如 |
Beta Was this translation helpful? Give feedback.
-
校验器建议:path 校验能否支持填写多个路径 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
我们预计将对于下半年对luban进行彻底重构,欢迎提一些改进建议及特性。
目前重构的目标为:
Beta Was this translation helpful? Give feedback.
All reactions