Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: "At least one of ratingCount or reviewCount is required." #65

Conversation

Projects
None yet
2 participants
@jmastr
Copy link
Contributor

jmastr commented Mar 10, 2019

Initially if you enable the plugin with Google Rich Snippet support and
you don't have any reviews yet the markup is not valid. The
AggregateRating object is created, but it has two missing required
fields:

  • Field ratingValue may not be empty.
  • At least one of ratingCount or reviewCount is required.

If we have no score yet, we do not create the AggregateRating object at
all.

Closes #64

Fix: "At least one of ratingCount or reviewCount is required."
Initially if you enable the plugin with Google Rich Snippet support and
you don't have any reviews yet the markup is not valid. The
AggregateRating object is created, but it has two missing required
fields:

- Field ratingValue may not be empty.
- At least one of ratingCount or reviewCount is required.

If we have no score yet, we do not create the AggregateRating object at
all.

Closes #64

@kamalkhan kamalkhan merged commit 8d4a5b8 into kamalkhan:master Mar 11, 2019

@kamalkhan

This comment has been minimized.

Copy link
Owner

kamalkhan commented Mar 11, 2019

Thank you.

kamalkhan added a commit that referenced this pull request Mar 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.