Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 task
zynyy opened this issue Jan 11, 2024 · 2 comments

Comments

@zynyy
Copy link
Contributor

zynyy commented Jan 11, 2024

  • 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 生效

@zynyy zynyy changed the title [Feature Request] [Feature Request] 希望 json-schema 中的 x-validator 判断增加值是否在 x-compile-omitted 中 [Feature Request] 希望 json-schema 中的 x-validator 判断增加值是否在 x-compile-omitted 中 Jan 11, 2024
@zynyy zynyy closed this as completed Jan 11, 2024
@zynyy zynyy reopened this Jan 11, 2024
@zynyy zynyy closed this as completed Jan 11, 2024
@zynyy zynyy reopened this Jan 11, 2024
@janryWang
Copy link
Collaborator

欢迎 PR 哈

@zynyy
Copy link
Contributor Author

zynyy commented Jan 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants