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
If some property is invalid in property.json, the property path should be shown in logs.
The text was updated successfully, but these errors were encountered:
当 property 中的 field 的 schema 非法时, 需要在报错信息中给出路径的 field 在 property 树状结构中的路径, 方便识别. 适用于 property.json 以及 msg 中的 property.
property 自身是一个 object, 按 field 的类型分成以下情况:
基础类型 (除 array 或 object 外, 包括 buf, pointer), 如:
{ "a": "", "b": 1 }
如果 a 的值非法, 报错信息如 a is invalid.
a
a is invalid
array
array item 是基础类型
{ "a": ["10"] }
报错信息如 a[0] is invalid.
a[0] is invalid
array item 是符合类型, 如 object
{ "a": [ { "b": "1" } ] }
报错信息如 a[0].b is invalid.
a[0].b is invalid
object 类型
{ "a": { "b": "", "c": 0 } }
报错如 a.c is invalid.
a.c is invalid
Sorry, something went wrong.
补充 array 的规范:
leoadonia
Successfully merging a pull request may close this issue.
If some property is invalid in property.json, the property path should be shown in logs.
The text was updated successfully, but these errors were encountered: