first item in a list isn't output correctly

Created on 28 March 2025, 9 days ago

Problem/Motivation

Not really sure how to describe this issue, but for example a list of offers that also have shippingDetails, the first item isn't populated correctly, all the others are:

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @djdevin
  • πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia
  • πŸ‡ΊπŸ‡ΈUnited States djdevin Philadelphia

    After looking at this a bit it's still outputting incorrectly, the eligibleRegion should have had a Country subelement.

    Turning off pivoting outputs as expected:

    {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Product",
                "name": "Thing",
                "offers": {
                    "@type": "Offer",
                    "price": "500",
                    "eligibleRegion": {
                        "@type": "Country",
                        "name": "USA"
                    }
                }
            }
        ]
    }
Production build 0.71.5 2024