Skip to content

fix(compliance): add selection_type to 3.1.x get_products pagination storyboard fixtures - #8683

Merged
bokelley merged 1 commit into
adcontextprotocol:3.1.xfrom
sujanchalla0510:fix-8646-pagination-fixture-selection-type
Nov 2, 2026
Merged

bokelley merged 1 commit into
adcontextprotocol:3.1.xfrom
sujanchalla0510:fix-8646-pagination-fixture-selection-type

Conversation

@sujanchalla0510

Copy link
Copy Markdown
Contributor

Fixes #8646.

What

Both seeded products in static/compliance/source/universal/get-products-pagination-integrity.yaml (3.1.x) named only publisher_domain in their publisher_properties entries. core/publisher-property-selector.json is a discriminated oneOf on selection_type and every branch requires it, so an entry without it matches no branch. A seller that returned the seeded product as authored therefore failed the storyboard's own response-schema validation on the first wholesale page:

/products/0/publisher_properties/0/selection_type: must have required property 'selection_type'; /products/0/publisher_properties/0: must match exactly one schema in oneOf

This adds selection_type: "all" to both fixture entries — identical to the already-fixed copies on main and in 3.2.8 — plus a patch changeset, per 3.1.x backport practice. Published dist artifacts are untouched; they regenerate at the next 3.1.x patch release.

Testing

  • Fail-first: validated both fixture entries from the 3.1.x source against the 3.1.x core/publisher-property-selector.json — both INVALID before the change (matches no oneOf branch, exactly the reported error), both VALID after.
  • YAML parses cleanly; the two entries are byte-identical to main's fixed version.
  • Verified the file at the current 3.1.x tip still lacks the field and last changed 2026-09-23, so this branch's diff is exactly the two fixture lines + changeset.

@sujanchalla0510
sujanchalla0510 requested a review from a team as a code owner November 2, 2026 01:19

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — clean two-line fixture fix on 3.1.x with no findings.

This PR adds selection_type: "all" to both seeded products' publisher_properties entries in get-products-pagination-integrity.yaml (L69, L80). The reviewer verified against core/publisher-property-selector.json — a discriminated oneOf where every branch requires selection_type — so the prior publisher_domain-only entries matched no branch, producing the reported must match exactly one schema in oneOf error. The added "all" lands cleanly in branch 1 and matches exactly one branch. Patch changeset included, dist untouched, consistent with 3.1.x backport practice.

No blocking findings, no medium findings. high_risk false, gated_paths false, no author team gate. None of rows 1–8 fire; falls through to row 9 → approve.

@sangilish

Copy link
Copy Markdown
Contributor

Thanks for taking this. I had the same source fix prepared locally, so I will avoid a duplicate PR.

I also have a regression for tests/lint-pagination-invariant.test.cjs that validates both fixture selectors against the selector schema and uses removal of selection_type as a negative control. That focused suite passed 19 tests locally. Would you like me to share the test for this PR or a follow-up? No need to change ownership of the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants