用Khronos Validator查结构错误,区分格式通过与商品正确
本页展示随包原生输入和验收参考。目标产品运行状态:未运行。表格与图片不代表产品已经生成的结果。
input.csv / practice-data.json


本课实际输入字段
| asset | issue_fixture | json_pointer | severity | state |
|---|---|---|---|---|
| good-author.gltf | none expected | /asset/version | baseline | author source |
| bad-mesh.gltf | mesh index 99 | /nodes/0/mesh | error fixture | needs real validator run |
| bad-uri.gltf | missing.png | /images/0/uri | error fixture | needs real validator run |


定位引用错误
reference.csv:作者验收映射,不是目标API回包
| item | expected | identity |
|---|---|---|
| 报告 | 真实validator版本/errors/warnings/指针 | author_acceptance_reference |
| 验证范围 | 结构通过不等于商品正确/许可通过 | author_acceptance_reference |
| 重新加载 | 修复后重跑Validator并重载 | author_acceptance_reference |
实际原生GLB读回
{
"measurements": {},
"files": [
{
"file": "author-control.glb",
"bytes": 66456,
"extensionsUsed": [],
"animations": 0
}
]
}应当保留的约束
| item | expected | identity |
|---|---|---|
| 报告 | 真实validator版本/errors/warnings/指针 | author_acceptance_reference |
| 验证范围 | 结构通过不等于商品正确/许可通过 | author_acceptance_reference |
| 重新加载 | 修复后重跑Validator并重载 | author_acceptance_reference |
故意构造的错误样例
| case | bad_value | why_reject |
|---|---|---|
| 假报告 | 正常截图代替JSON | 无结构证据 |
| 坏数字 | NaN translation | 非合法JSON数值 |
先保存真实产品输出,再逐项对照。actualOutput / actualResult 在未执行时保持 not_run,不能把这里的期望值复制成已测结果。