Add schema+file validator; pin down fs-web-stream as ad icons

Why:
- schema 必须能自动校验,否则后续放量无法防腐。现在 scripts/validate.py
  对全部 metadata.json 做两层检查(schema + 本地文件 sha256),跑一次
  即可对全量数据签收;10/10 项目已通过。
- docs/sources/oshwhub.md 之前把 fs-web-stream.jlc.com 标为"工程源待查",
  排查后确认那些 URL 全部是嘉立创服务侧栏/推广图标,与项目无关。
  image.lceda.cn/attachments/ 是项目附件的唯一入口,现在调研文档闭合。

What:
- scripts/validate.py: jsonschema 校验 + optional --check-files 核 sha256
- pyproject.toml: 加 jsonschema>=4.26 依赖
- docs/sources/oshwhub.md: fs-web-stream 归类为推广资源(已排除),附 context 证据
- log.md: 本次会话记录

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Zhang Jiahao
2026-04-23 19:40:55 +08:00
parent 5ffa10f256
commit c8d55a22eb
4 changed files with 139 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ description = "Open hardware design dataset for Facere."
requires-python = ">=3.11"
dependencies = [
"httpx[http2]>=0.27",
"jsonschema>=4.26.0",
]
[tool.ruff]