Repository navigation
feat(schemas): deprecate the single-value form of the scalar-or-list unions - #9123
Conversation
…unions 17 positions accept a value or a non-empty array of the same value. A one-item array says the same as the single value, and every 3.x release accepts it, so the scalar branch is marked deprecated at each one: deprecated: true, x-deprecated-in 3.3.0, and a description that says to send the array. 16 positions carry x-removed-in 4.0.0 and are listed in the 4.0 compatibility registry under schema_removals_not_checked. The brand.json color_value carries x-removed-in 5.0.0, because brand.json is read without version negotiation, so a 4.0 reader can still meet a file written for 3.x. The 3.3 migration guide and the 4.0 compatibility page say what senders and receivers do. Annotations only: no payload validates differently. Refs adcontextprotocol#8477
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR modifies 12 files under static/schemas/source/**, which are under a hard, deterministic approval gate (gated_paths: true). The required review_decision is REVIEW_REQUIRED, not APPROVED, so per decision rule row 2 the gate is not satisfied and the outcome must be escalate.
The reviewer found the change clean: an annotation-only deprecation (#8477) adding deprecated/x-deprecated-in: 3.3.0/x-removed-in markers to the scalar branches of 17 scalar-or-list unions. Array branches are untouched, no payload validates differently, counts reconcile across changeset (17), migration doc (17), and v4-compatibility.mdx, and a correct patch changeset is present. No Critical/High/Medium findings. This is a non-breaking, editorial/normative deprecation — not a breaking-class change.
Despite the clean diff, the schema-source approval gate stands until a human/CODEOWNERS review is recorded.
Escalation reasons
- Touches gated path
static/schemas/source/**(12 files, e.g.static/schemas/source/brand.json,static/schemas/source/core/creative-manifest.json) andreview_decisionisREVIEW_REQUIRED— human/CODEOWNERS approval required before merge.
Why human review
- Gated paths: 12 files under static/schemas/source/** modified while review_decision is REVIEW_REQUIRED (not APPROVED) — human/CODEOWNERS approval required.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/brand.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/get-brand-identity-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/audience-characteristic.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-asset.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-assets.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-localization-readback.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-localization.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-manifest.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/list-creatives-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/error-details/requote-required.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buy-delivery-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buys-request.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The bundler inlines a $ref by merging the target into the referencing
object, so keys written beside the $ref land inside the inlined body.
For a schema marked x-adcp-hoist that body is the named type: the
deprecated single-value branch of the creative asset maps,
{ "$ref": ".../asset-union.json", "deprecated": true, "description": ... },
became a second, different schema titled AssetVariant. hoistMarkedSchemas
refused the duplicate title, so 14 request and response bundles, among
them create-media-buy-request, failed to build. A lone annotated site
would instead have become the canonical AssetVariant, deprecation and
all.
resolveRefs now keeps the target body intact when the target is marked
and the call-site has sibling keys, and hoistMarkedSchemas writes the
call-site as { "$ref": "#/$defs/<Title>", ...siblings }. That is the
form the source uses and the form hoistBySourceIdentity already writes
for provenance. Bundles keep one AssetVariant entry, and the
annotations stay on the single-value branch.
This is a build fix, not a schema fix. Annotations beside a $ref are
the repo's convention (demographics, provenance), and moving them onto
an allOf wrapper would make the 17 unions inconsistent to work around
the bundler. Unmarked targets merge as before: compared with
b4c40fc, the only bundle changes are the new deprecated,
x-deprecated-in, x-removed-in, and description keys.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-paths hard approval gate not satisfied.
This PR modifies 12 files under static/schemas/source/**, which is a hard, non-overridable approval gate. The current review_decision is REVIEW_REQUIRED, not APPROVED, so Ladon cannot auto-approve regardless of how clean the diff is (decision table row 2).
Escalation reasons
- 12 files under
static/schemas/source/**are modified whilereview_decisionisREVIEW_REQUIRED(notAPPROVED) — human/CODEOWNERS approval required before merge.
Review notes (no blocking findings)
The reviewer's subsequent pass is clean: the delta is limited to the bundler fix in scripts/build-schemas.cjs and its new test. The x-adcp-hoist-target deferral and collapseHoistTargets correctly keep one canonical $defs entry and place call-site keys beside a local $ref rather than forging a duplicate titled copy — the right fix for the prior silent build failure. Pass ordering and hoisted/un-hoisted branches are correct; lone-ref and shared-use cases are tested. No critical/high/medium findings surfaced.
The prior decision was also escalate for the same gated-paths reason; nothing has changed on the approval status, so the gate persists. The moment a human/CODEOWNERS approval is recorded (review_decision: APPROVED), this clean diff can fall through to approve.
Why human review
- 12 files under static/schemas/source/** modified while review_decision is REVIEW_REQUIRED (not APPROVED) — human/CODEOWNERS approval required (gated paths hard gate).
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/brand.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/get-brand-identity-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/audience-characteristic.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-asset.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-assets.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-localization-readback.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-localization.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-manifest.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/list-creatives-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/error-details/requote-required.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buy-delivery-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buys-request.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The build printed a warning for each root that failed to bundle and exited 0, so CI could not see the failure. It now keeps bundling the other roots, lists every failure with its error, and exits 1 without recording a build stamp. The build also fails, instead of skipping, on a $ref it cannot resolve, an extension that does not parse or lacks valid_from, and a storyboard that does not parse.
run-storyboards-matrix.sh runs without `set -e`, so a failed schema or compliance build went on to grade storyboards against whatever partial output the build left behind. The matrix now exits 1 when either build fails, and when extracting, copying, or patching the 3.0 compatibility bundle fails or its adcp_version cannot be read, since each leaves the run testing the wrong inputs.
The exit-status test copied the whole source tree and ran the full 124-bundle build twice, 8 to 35 seconds of setup. build-schemas.cjs now takes `--root <dir>` to build another tree with the same layout; without it the build reads and writes this repository as before, byte for byte. A build of another tree skips the build lock and stamp, which belong to this repository's dist/schemas/latest, and the MCP projection is skipped when the manifest has no tools. The test builds a two-root fixture and runs in under a second.
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema-source paths require human/CODEOWNERS approval.
This PR modifies 12 files under static/schemas/source/**, a hard, non-overridable approval gate (gated_paths: true), while the current GitHub review_decision is REVIEW_REQUIRED (not APPROVED). Per decision rule row 2, the outcome must be escalate regardless of how clean the diff is. The prior decision was also escalate for the same reason.
The reviewer reported a clean pass with no critical/high/medium findings. The delta hardens scripts/build-schemas.cjs from fail-open to fail-closed (parse/ref/bundle errors now throw, bundle failures aggregated, --root fixture path fenced by BUILDS_THIS_REPOSITORY), with shell matrix || exit 1 guards and tests covering exit-0/exit-1/fail-fast. Schema-source changes were clean on the prior pass. Changeset present (.changeset/deprecate-scalar-or-list-single-value.md).
Escalation reasons
- 12 files under
static/schemas/source/**modified whilereview_decisionisREVIEW_REQUIRED(not APPROVED) — human/CODEOWNERS approval required (gated-paths hard gate). Gated files includebrand.json,brand/get-brand-identity-response.json,core/audience-characteristic.json,core/creative-asset.json,core/creative-assets.json,core/creative-localization-readback.json,core/creative-localization.json,core/creative-manifest.json,creative/list-creatives-response.json,error-details/requote-required.json,media-buy/get-media-buy-delivery-request.json,media-buy/get-media-buys-request.json.
The gate lifts automatically once review_decision becomes APPROVED; no code issues are blocking this PR.
Why human review
- 12 files under static/schemas/source/** modified while review_decision is REVIEW_REQUIRED (not APPROVED) — human/CODEOWNERS approval required (gated-paths hard gate). Gated files: brand.json, brand/get-brand-identity-response.json, core/audience-characteristic.json, core/creative-asset.json, core/creative-assets.json, core/creative-localization-readback.json, core/creative-localization.json, core/creative-manifest.json, creative/list-creatives-response.json, error-details/requote-required.json, media-buy/get-media-buy-delivery-request.json, media-buy/get-media-buys-request.json.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/brand.json (modified) matches
static/schemas/source/**; static/schemas/source/brand/get-brand-identity-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/audience-characteristic.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-asset.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-assets.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-localization-readback.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-localization.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/creative-manifest.json (modified) matchesstatic/schemas/source/**; static/schemas/source/creative/list-creatives-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/error-details/requote-required.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buy-delivery-request.json (modified) matchesstatic/schemas/source/**; static/schemas/source/media-buy/get-media-buys-request.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
Resolve package.json: keep this branch's test:build-schemas-exit-status script and main's test:release-workflow (adds gnu-runner-tools). Co-Authored-By: Claude Opus 5.5 <[email protected]>
hoistDuplicateInlineEnums seeded the $defs body from the first inline occurrence of a duplicated enum. When that occurrence was a $ref with call-site annotations (the deprecated single-value branch of status_filter), resolveRefs had merged `deprecated`, `x-deprecated-in`, `x-removed-in` and the deprecation description into it, so $defs.MediaBuyStatus became deprecated and the call-site a bare $ref. The body now comes from an occurrence without call-site annotations; an annotation every occurrence shares stays part of the enum. An annotated occurrence keeps its annotations, and its description when it differs, beside the $ref, as hoistMarkedSchemas does. Unannotated occurrences still become a bare $ref. Validation is unchanged. The same fix moves the pre-existing VASTVersion/DAASTVersion deprecation in list-creative-formats-response back to the deprecated vast_version and daast_version call-sites. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The creative asset maps in core/creative-asset.json, core/creative-manifest.json and list_creatives assets accept an array only from 3.1, so "every 3.x release accepts a one-item array" was wrong for them. The migration guide, the v4 compatibility page, the changeset and those three deprecation descriptions now say to send the array when the release in use with the counterparty is 3.1 or later and the single value to a 3.0 peer. Also: the 3.3 Deprecations intro names the brand.json colors' 5.0 removal, the v4 page lists the seller-emitted single-value sites, and the page and registry record that brand.json color_value is marked x-removed-in 5.0.0 and outside the 4.0 registry by design. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@KonstantinMirin — we're taking this into 3.3.0-rc.3 so the 4.0 removal in #8477 has a 3.x deprecation to point at, so I pushed three commits to your branch rather than wait a round-trip:
The only failing check is |
bokelley
left a comment
There was a problem hiding this comment.
Approved at ec973f4 for 3.3.0-rc.3. Payload-neutral deprecation of the 17 single-value branches (#8477), verified by an independent review: no validation or generated-type-name change. Review fixes pushed: creative asset maps send the single value to 3.0 peers (array form only from 3.1), and the enum hoist keeps call-site deprecation beside the $ref instead of on the shared $defs type (also fixes the existing VAST/DAAST markers). Only failing check is the pre-existing, non-required Generate Python SDK postal_area.py error seen on unrelated PRs.
…contextprotocol#9123) Brings in adcontextprotocol#9123: the scalar branch of 17 scalar-or-list unions is deprecated, and build-schemas fails the build on any bundle failure, unresolvable $ref, unparsable extension or storyboard, keeps call-site keys beside a $ref to a hoisted schema, and takes --root. The storyboard matrix stops when a build fails. Resolution ledger: - package.json (one hunk, the test script): union. This branch's added lints and test:build-cache stay; main's test:build-schemas-exit-status is added after test:build-schemas-vendor-metric-uniqueness. - scripts/run-storyboards-matrix.sh (two hunks): union. - The 3.0 bundle copy keeps this branch's temporary directory under the queue state directory and adds main's extraction error exit. - The current-source builds keep this branch's built-schemas.cjs ensure calls, which skip a build whose inputs are unchanged, and print main's "schema build failed" and "compliance build failed" errors when a build fails. - tests/run-storyboards-sharding.test.cjs (one hunk): union. Both sides' tests stay. Main's build-failure test also copies scripts/built-schemas.cjs into its temporary root, because the matrix builds through the build cache; the cache finds no stamp there and runs the stubbed builds, so both failure cases are still exercised. - scripts/build-schemas.cjs (seven hunks): union. - The parse-once source reads (the documents map, the source cache) stay. They're assigned to main's outer refContent, so an unresolvable $ref still fails with main's error. - Main's failures list, its error lines and the early return for a manifest without tools come in. - Bundling stays in a worker thread. The worker now returns main's failures list instead of an error count, and main() adds every bundled directory's failures to bundleFailures before assertNoBundleFailures runs. That includes the release-mode latest/ bundle, whose result this branch had not used. - The worker gets its source and output directories passed in, so a --root build bundles the --root tree. Checks on the merge result: - npm run typecheck: pass. - SOURCE_DATE_EPOCH=1700000000 node scripts/build-schemas.cjs, in this tree and in a checkout of origin/main: the two dist/schemas/latest trees are identical over 1,771 files. - node --test on tests/build-schemas-*.test.cjs, tests/run-storyboards-sharding.test.cjs, tests/build-cache.test.cjs and tests/v4-compatibility-registry.test.cjs: 146 pass, 0 fail. - node scripts/precommit-server-unit.cjs --full: 867 files, 14,716 passed, 31 skipped, the same as before the merge; adcontextprotocol#9123 adds no server tests.
|
@bokelley Two changes on top of yours fix all 318:
With both, the MCP projection tests pass, the bundles grow 0.5%, and one expectation changes: "an unannotated occurrence with its own description still becomes a bare $ref". The diff is five lines; I can push it to this branch or open a separate PR, whichever you prefer. |
…-branch Resolution ledger: - Semantic: static/schemas/source/core/creative-manifest.json. This branch moved the manifest's shared fields, the assets map among them, into core/creative-manifest-base.json; main (adcontextprotocol#9123) marks the single-value branch of that assets map deprecated. Kept this branch's file, and moved main's annotated branch, with deprecated, x-deprecated-in 3.3.0, x-removed-in 4.0.0 and main's description, unchanged to creative-manifest-base.json#/properties/assets/ patternProperties/^/oneOf/0. That was main's only change to the file. - Follow-on: static/compliance/source/universal/v4-compatibility.yaml lists the moved site under schema_removals_not_checked, so the v4 registry lint finds the marked node where it now lives. - Mechanical: none. package.json and package-lock.json are main's (this branch changes neither); no data or generated file conflicts. - Invariants: the deprecation stays on the call-site beside the $ref, and the hoisted AssetVariant definition carries no deprecation in any bundle. Bundled deprecated definitions and x-removed-in call-site counts match main's build.
Brings in 3 commits from main: adcontextprotocol#9123 (deprecates the single-value branch of 17 scalar-or-list unions and fixes the bundler so call-site keys beside a $ref stay at the call site), adcontextprotocol#9169 (training agent inventory floors) and adcontextprotocol#9171 (PROPOSAL_TERMS_CHANGED for a mismatched accept_proposal digest). Resolution ledger Mechanical files, resolved by rule: - package.json (conflicted): the test list keeps both sides' entries, test:schema-named-constraints from this branch and test:build-schemas-exit-status from main. 119 entries, each defined. - tests/mcp-schema-projection.test.cjs (auto-merged, failed the gate): the parity compile limit is the measured comply_test_controller projection rounded up to the next 1,000 bytes. Main's deprecation descriptions and the new error code bring main's controller from 1,350,376 to 1,351,064 bytes; this branch's named schemas still add 79,135, so the merged controller measures 1,430,199 and the limit moves from 1,430,000 to 1,431,000. Semantic files, union of both sides: - brand.json color_value, brand/get-brand-identity-response.json colors (5 sites), error-details/requote-required.json envelope_field: this branch's $ref to core/hex-color.json or #/definitions/envelope_field_path is kept, and main's deprecated, x-deprecated-in, x-removed-in and deprecation description sit beside it on the single-value branch. brand.json keeps x-removed-in 5.0.0; the others keep 4.0.0. The referenced definitions carry no deprecation, so the array branches and the other sites that reference them are not deprecated. - media-buy/accept-proposal-request.json proposal_terms_digest: this branch's $ref to core/proposal-terms-digest.json with main's longer description from adcontextprotocol#9171. Proof: - Schema equivalence, origin/main -> merge, with the delta manifest: 3,056 entries at 41 sites and 4,255 informational entries, the same as the branch against its previous merge base; the manifest matches, 41/41 witnesses pass, and no corpus instance changes verdict. - The annotation channel at source level is the union of both sides: each of main's 77 annotation changes (title, description, default, deprecated, x-*) lands at the same document and pointer in the merge, and each of this branch's 1,636 stays relative to main. - Bundles: the 81 single-value deprecation nodes in the bundled schemas sit at the same pointers with the same keys as main's build, and none moves onto a shared definition. - Inline pattern and enum counts stay at 83 and 471, and the $ref count is unchanged.
Brings in 6 commits from main: adcontextprotocol#9123 (deprecates the single-value form of the scalar-or-list unions), adcontextprotocol#9169 (training agent inventory floors), adcontextprotocol#9171 (PROPOSAL_TERMS_CHANGED), adcontextprotocol#9170 (not-guards that resolve 11 overlapping oneOf unions, with tests/oneof-overlap-resolution.test.cjs), adcontextprotocol#9141 (3.3.0-rc.3 version packages) and adcontextprotocol#9176 (rc.3 docs snapshot). Resolution ledger: - package.json (conflicted): test:schemas keeps both sides' entries, the two equivalence tests from this branch and tests/oneof-overlap-resolution.test.cjs from main, at main's position. Main's test:build-schemas-exit-status auto-merged. Every test file it names exists. The version (3.3.0-rc.3) is main's. - package-lock.json: main's (version field only). - Invariants: no code change needed. The oneof check at the merged tree reports 223 reachable oneOfs, P 219, W 4, U 0, the same as main at 14651cc; adcontextprotocol#9170 resolves 12 of the 16 witnessed overlaps (main at 2db59ba, after adcontextprotocol#9123, still has 16). The 4 left are the either/or unions adcontextprotocol#9170 leaves for adcontextprotocol#8191. The construct catalog still reports its 37 known false alarms and no misses, and tests/oneof-overlap-resolution.test.cjs passes (38 of 38). - Proof: schema equivalence of the merged tree against 14651cc: 1113 roots, 0 differ, class 1, no informational entries.
Brings in 6 commits from main: adcontextprotocol#9123 (deprecates the single-value form of the scalar-or-list unions), adcontextprotocol#9169 (training agent inventory floors), adcontextprotocol#9171 (PROPOSAL_TERMS_CHANGED), adcontextprotocol#9170 (not-guards that resolve 11 overlapping oneOf unions, with tests/oneof-overlap-resolution.test.cjs), adcontextprotocol#9141 (3.3.0-rc.3 version packages) and adcontextprotocol#9176 (rc.3 docs snapshot). Resolution ledger: - package.json (conflicted): test:schemas keeps both sides' entries, the five lint tests from this branch and tests/oneof-overlap-resolution.test.cjs from main, at main's position. Main's test:build-schemas-exit-status auto-merged. Every test file it names exists. The version (3.3.0-rc.3) is main's. - package-lock.json: main's (version field only). - Baseline: adcontextprotocol#9170's error-branch guards are local refs to #/oneOf/0, which the schema-path lint reports as ref-local-not-defs. They are main's schemas, so the seven findings are recorded in scripts/lint-schema-paths-baseline.json with --update-baseline rather than changed here: - adagents.json#/oneOf/1/not/$ref - content-standards/{calibrate-content,create-content-standards, get-content-standards,get-media-buy-artifacts, list-content-standards,validate-content-delivery}-response.json #/oneOf/1/not/$ref Schema paths go from 593 to 600. The other four lints are unchanged: enum values 58, property names 820, value lists 24, x-adcp-validation 337. - Proof: schema equivalence against 14651cc: 1113 roots, 0 differ, class 1; 158 informational x-adcp-validation entries at 18 sites, as before.
Revised 2026-11-21: the build keeps the deprecation annotations beside a hoisted
$ref, so every bundle builds; the build exits 1 when a bundle fails; the CI section explains the Python SDK job, which fails onmainsince #9049.This marks the single-value branch of the 17 scalar-or-list unions deprecated, so 4.0 can make them list-only, as #8477 proposes. A one-item array already says the same thing and every 3.x release accepts it, so the deprecation needs no new name and changes no payload.
What changes
At each of the 17 positions in #8477's revised list, the schema accepts
Xor{ "type": "array", "items": X, "minItems": 1 }. TheXbranch now carries:This follows the boolean
demographicsdeprecation (#8778): the annotations sit on the branch, beside a$refwhere the branch is one, and every 4.0 removal is listed instatic/compliance/source/universal/v4-compatibility.yaml.get_brand_identitycolors.{primary,secondary,accent,background,text}REQUOTE_REQUIREDenvelope_fieldcore/creative-asset.json,creative-assets.json,creative-manifest.json,list_creativesassets, and the two localization asset mapsstatus_filteronget_media_buysandget_media_buy_deliveryvalue(the string, number and boolean branches) and its integer refinement foragebrand.json#/definitions/color_valuebrand.jsonis fetched without version negotiation, so a 4.0 reader can meet a file a publisher wrote for 3.x. Its color values keep the single-value form until 5.0 (x-removed-in: "5.0.0"). Publishers can switch to arrays now: every 3.x reader accepts them.The four nodes #8477 lists as out of scope are untouched: the three localized string-or-map nodes (
brand.jsonlocalized_scalarand bothtaglines), whose list element isn't the scalar, andiana_timezones, wheretrueis a sentinel, not a scalar.The 3.3 migration guide gets a deprecation entry that says what senders and receivers do, and the 4.0 compatibility page names the removal. The registry entry sits under
schema_removals_not_checked: both forms are valid through 3.x, so a 3.x run can't grade which one a party sends.Generated type names don't change: no title moves, and the branches keep their schemas.
Bundler fix
The creative asset maps reference
core/asset-variant.json, which the build hoists into$defsasAssetVariant(x-adcp-hoist).scripts/build-schemas.cjsmerged the keys written beside that$refinto the inlined body, so the annotated branch became a second, different schema titledAssetVariant. The hoist refuses two schemas with one name, so 12 bundled roots failed to build,media-buy/create-media-buy-request.jsonamong them. The build printed a warning and exited 0, which is why only the composed test caught it.The build now keeps the hoisted body as it is and writes the call-site keys beside the reference:
{"$ref": "#/$defs/AssetVariant", "deprecated": true, ...}, the form the provenance hoist already writes. All 124 bundles build. Against the merge base, 21 bundles change, by annotation keys only:$refs,$defs, and structure are the same.tests/build-schemas-hoist-marked.test.cjscovers both a lone annotated reference and the shared case.A failed bundle now fails the build.
scripts/build-schemas.cjskeeps building the other roots, lists every root that failed with its error, and exits 1. An unresolvable$ref, an extension or storyboard file that doesn't parse, and an extension withoutvalid_fromalso fail the build; before, the build skipped each one. The storyboard matrix (scripts/run-storyboards-matrix.sh) stops when the schema or compliance build fails, instead of grading what the build left behind.tests/build-schemas-exit-status.test.cjsruns the build with--rooton a small fixture tree where two roots collide and checks that it lists both and exits 1.Proof
The equivalence check (proposed in #9119) compares the canonical form of every published root at the merge base and at the head. Its canonical form drops
deprecated,descriptionandx-*.15a4371c64vs merge baseb4c40fcb85No root differs, so no corpus instance can change verdict and the PR needs no delta manifest.
Reproduce, from a checkout of the tool:
CI
"Generate Python SDK" fails on
mainsince #9049, which adds a secondpostal_areaproperty (reporting-dimension-systems.json). The generator now numbers the postal union's classesPostalArea40 | PostalArea41instead ofPostalArea1 | PostalArea2, with the same structure. The SDK'sfix_postal_union_arm_ordermatches the old text and raises "unexpected outer union shape". #9141 fails the same way, and this PR changes no postal schema.Refs #8477