[Feature Request] 希望 json-schema 中的 x-validator 判断增加值是否在 x-compile-omitted 中
Closed this issue · 2 comments
zynyy commented
- 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
formily/packages/json-schema/src/shared.ts
Line 103 in ec5485f
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 生效
janryWang commented
欢迎 PR 哈
zynyy commented
@janryWang 一般多久mr。流程是怎么样的很少用这方面不是很懂