alibaba/formily

[Feature Request] 希望 json-schema 中的 x-validator 判断增加值是否在 x-compile-omitted 中

Closed this issue · 2 comments

  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

因为目前x-validator需要配置一些变量而这些变量在转换中不存在又希望变量使用的符号{{}}保持一致。但是目前 x-validator 无法在 x-compile-omitted 配置中生效
所以希望能支持忽视compile

if (schema['x-validator'] !== undefined) {
中增加判断

  if (schema['x-validator'] !== undefined) {
    visitor(schema['x-validator'], ['x-validator'], schema['x-compile-omitted']?.includes('x-validator') );
  }

What does the proposed API look like?

x-compile-omitted 能够对 x-validator 生效

欢迎 PR 哈

@janryWang 一般多久mr。流程是怎么样的很少用这方面不是很懂