Skip to content

feat(AGENTCOM-266): transform commerce enrichment to schema.org Product JSON-LD#1406

Closed
Comet300 wants to merge 4 commits intomainfrom
AGENTCOM-266-passthrough-enrichment
Closed

feat(AGENTCOM-266): transform commerce enrichment to schema.org Product JSON-LD#1406
Comet300 wants to merge 4 commits intomainfrom
AGENTCOM-266-passthrough-enrichment

Conversation

@Comet300
Copy link
Contributor

@Comet300 Comet300 commented Mar 5, 2026

  • Transform flat enrichment key-value data into schema.org Product JSON-LD per POC canonical template
  • Map known enrichment fields (sku, brand, pdp.description_plain, facts.facets.category_path, etc.) to schema.org top-level Product properties with priority-based source resolution
  • Wrap remaining fields as additionalProperty (PropertyValue) entries
  • Change content type from application/json to application/ld+json
  • Wrap string brand values in { @type: Brand, name } objects; pass through brand objects as-is
  • Join array category paths with > separator

Test plan

  • All 601 existing tests pass
  • New tests cover: schema.org envelope, top-level field mapping, brand wrapping, category string/array handling, category priority, variants.color/size mapping, rationale exclusion, null value exclusion, brand
    object passthrough
  • Simulated mapper output against actual enrichment suggestion data from LoveSac products — output matches POC canonical JSON-LD structure

Please ensure your pull request adheres to the following guidelines:

  • make sure to link the related issues in this description
  • when merging / squashing, make sure the fixed issue references are visible in the commits, for easy compilation of release notes

Related Issues

https://jira.corp.adobe.com/AGENTCOM-266

Thanks for contributing!

Comet300 added 4 commits March 2, 2026 14:02
…sthrough in commerce enrichment mapper

Remove schema.org JSON-LD transformation (toJsonLd) and pass CAS
enrichment data through as-is. Switch script type from
application/ld+json to application/json.
…SON-LD

Replace passthrough mapper with proper schema.org Product transformation
per POC canonical template. Maps flat enrichment fields (sku, brand,
pdp.description_plain, facts.facets.category_path, etc.) to structured
JSON-LD with @context/@type envelope, Brand objects, category path
joining, and additionalProperty for extended fields. Changes content
type from application/json to application/ld+json.
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

This PR will trigger a minor release when merged.

@Comet300 Comet300 closed this Mar 5, 2026
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.

1 participant