We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
this is my jsonschema
{ "allOf": [ { "else": { "required": [] }, "then": { "required": [ "b" ] }, "if": { "properties": { "a": { "contains": { "const": "1", "type": "string" }, "type": "array" } } } }, { "else": { "required": [] }, "then": { "required": [ "c" ] }, "if": { "properties": { "a": { "contains": { "const": "2", "type": "string" }, "type": "array" } } } } ], "type": "object", "properties": { "a": { "type": "array", "message": { "type": "下拉组件必须是array类型" }, "items": { "type": "string" } }, "b": { "type": "string", "message": { "type": "b组件必须是字符串类型", "maxLength": "组件长度最大支持50位" }, "maxLength": 50 }, "c": { "type": "string", "message": { "type": "c组件必须是字符串类型", "maxLength": "组件长度最大支持50位" }, "maxLength": 50 } }, "required": [ "a" ], "dependencies": { "b": { "allOf": [ { "properties": { "a": { "contains": { "const": "1", "type": "string" }, "type": "array" } } } ] }, "c": { "allOf": [ { "properties": { "a": { "contains": { "const": "2", "type": "string" }, "type": "array" } } } ] } } }
this is my data
{ "a": [ "2" ], "c": "45" }
It should pass the verification, but it prompted me that a is missing "1", but I did not pass the value of b.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
this is my jsonschema
this is my data
It should pass the verification, but it prompted me that a is missing "1", but I did not pass the value of b.
The text was updated successfully, but these errors were encountered: