Skip to content

List or nested data is missing @context #422

Open
@iJoris

Description

@iJoris

Describe the bug

When using an list of data, for example products it only adds an @context to the first entry.
The same problem occurs when using nested data, for example an location in an event.

This results in Google not detecting the items after the first one.

Steps to reproduce

  1. Make an list of 2 or more events or products
  2. Use SchemaSerializer.SerializeObject(obj)
  3. See that the second item is missing @context

Expected behaviour

Every item as an @context

Schema objects

Tested it with product, and music event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues describing a bug or pull requests fixing a bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions