Download page and docs: ship the skinny analytics events JSON Schema with builds that include genericAnalyticsSkinnyEvents
I maintainer di solito rispondono entro 4 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, json
- Ambito
- devtools, documentation
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
🤖 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.
- Lingua principale
- HTML
- Stelle
- 85
- Fork
- 1.4k
- Merge medio
- 6g 14h
- PR unite (30g)
- 95
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di prebid/prebid.github.io
-
Expand out event definitions with object and typesForse già presa @patmmccann l’ha presa 6 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
prebid/prebid.github.io#6968 ·
I maintainer di solito rispondono entro 4 giorni
-
Instream video example: JW Player library URL returns 403Forse già presa @patmmccann l’ha presa 3 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
prebid/prebid.github.io#6904 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni
-
Download page monitoringForse già presa @patmmccann l’ha presa 23 giorni fa. Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 22/100
prebid/prebid.github.io#6165 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Document Analytics Events for various Prebid Server eventsForse già presa @muuki88 l’ha presa 1036 giorni fa. Aperta
prebid/prebid.github.io#5073 · 4 commenti · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 4 giorni
-
Document since when a particular API / module / config is available ( date and release version)Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
prebid/prebid.github.io#4558 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di prebid/prebid.github.io
Issue simili
-
iOS: Clear Context (/clear) and model picker fallback use negative agent check instead of isClaudeAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
dependencies test
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
prebid/salesagent#2675 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
sunososobro-hub/cloudball#339 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
InterfaceMemberImpliedModifier: records and annotation types nested in interfaces are not checkedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
checkstyle/checkstyle#23007 ·
I maintainer di solito rispondono entro 1 giorno