Download page and docs: ship the skinny analytics events JSON Schema with builds that include genericAnalyticsSkinnyEvents
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 48/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- javascript, json
调研方向
Start with assets/js/download.js and assets/js/prebidBundler.js to see how the download page saves disclosure files, then check how selected modules and versioned jsDelivr assets are handled. Read dev-docs/modules/genericAnalyticsSkinnyEvents.md and genericAnalyticsAdapter.md for the documentation changes. Done when selected builds include the matching schema when available, and both module pages explain the contract and link to its validation guidance.
由索引模型根据 Issue 内容生成。
描述
🤖 This issue was written by an AI agent (Claude Code) on behalf of @patmmccann.
Problem
The skinny preset of the Generic Analytics Adapter, provided by the genericAnalyticsSkinnyEvents module, comes with a public payload contract. prebid/Prebid.js#15953 publishes it as a JSON Schema generated from the TypeScript wire types, at dist/schema/genericAnalyticsSkinnyEvents.schema.json in the npm package. The schema's $id is its jsDelivr URL in the release that introduced it, and it changes only when the contract changes. Collectors validate events against it, and pin the $id to notice when the contract changes.
Publishers who use the download page don't get it. With the module selected, the page saves prebid<version>.js, prebid-config.json and <bundle>_disclosures.json, but nothing that tells the team running the collector what the payloads look like or which contract version that build sends. They would have to know to look in the npm package or on jsDelivr, and to pick the schema that matches their version.
Proposal
- Download page: when
genericAnalyticsSkinnyEventsis among the selected modules, also save the event schema for the chosen version, the same way_disclosures.jsonis saved today (assets/js/download.js, usingassets/js/prebidBundler.js).- Fetch
https://cdn.jsdelivr.net/npm/prebid.js@<version>/dist/schema/genericAnalyticsSkinnyEvents.schema.json. Releases before the schema was published return 404; skip the file quietly for those. - Save the file as fetched, so its
$idis unchanged. Its$idnames the release that introduced this contract, which can be older than the version downloaded; that is intended. - The schema
$refs the OpenRTB request and imp schemas. Either save those too (resolve each$refagainst the event schema's$id, since reused schemas keep their original$id), or link to them, and say they can be stubbed out as described in the module docs. - Ideally, generalize this to any schema a selected module publishes under
dist/schema/, not just this one module.
- Fetch
- Module page (
dev-docs/modules/genericAnalyticsSkinnyEvents.md): add a "Payload contract" section. It should cover:- where the schema is: in the npm package, on jsDelivr, and in download-page builds;
- that the
$idis the contract version and changes only when the contract does; - that every event sets
additionalProperties: false, so an added field is a contract change; - how to validate with Ajv, including
allowUnionTypesand stubbing the OpenRTB schemas.
- Generic Analytics Adapter page (
dev-docs/modules/genericAnalyticsAdapter.md): link to that section from theskinnypreset description.
Depends on
prebid/Prebid.js#15953 (not merged yet). The download-page part can land any time, because it skips versions without the schema, but nothing will be downloaded until a release includes #15953.
- 主要语言
- HTML
- 星标
- 85
- 派生
- 1.4k
- 平均合并
- 6 天 14 小时
- 30 天内合并 PR
- 95
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
prebid/prebid.github.io 的其他 Issue
-
Expand out event definitions with object and types可能已有人在做 @patmmccann 于 6 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
prebid/prebid.github.io#6968 ·
维护者通常 4 天内回复
-
Instream video example: JW Player library URL returns 403可能已有人在做 @patmmccann 于 3 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 48/100
prebid/prebid.github.io#6904 · 1 条评论 ·
维护者通常 4 天内回复
-
Download page monitoring可能已有人在做 @patmmccann 于 23 天前认领。 未关闭enhancement
难度 5/5 一周以上 新手友好度 22/100
prebid/prebid.github.io#6165 · 2 条评论 ·
维护者通常 4 天内回复
-
Document Analytics Events for various Prebid Server events可能已有人在做 @muuki88 于 1036 天前认领。 未关闭
prebid/prebid.github.io#5073 · 4 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 4 天内回复
-
难度 4/5 3-5 天 新手友好度 32/100
prebid/prebid.github.io#4558 · 4 条评论 · 1 个 reaction ·
维护者通常 4 天内回复
查看 prebid/prebid.github.io 的全部 Issue
相似的 Issue
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaude未关闭
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
dependencies test
难度 2/5 1-3 小时 新手友好度 62/100
prebid/salesagent#2675 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 62/100
sunososobro-hub/cloudball#339 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
InterfaceMemberImpliedModifier: records and annotation types nested in interfaces are not checked未关闭
难度 2/5 1-3 小时 新手友好度 72/100
checkstyle/checkstyle#23007 ·
维护者通常 1 天内回复