/webmasters/community?hl=en
This content is likely not relevant anymore. Try searching or browse recent questions.
Is there any harm in using an array of types in @type declaration? 1 Recommended Answer 3 Replies 0 Upvotes
1 Recommended Answer
$0 Recommended Answers
1 Relevant Answer
$0 Relevant Answers
When we initially setup structured data on our site, we set it up with an array of types in the @type declaration, like below
{
 "@context":"http://schema.org","
 @type":["Product","Apartment"],
"name":"123 Any St.",
...
}

The reason we did this was that it allowed us to describe to objects that had some overlap in properties while reducing the amount of code on the page. Looking at this again, it's probably doesn't make that much of a difference overall so wondering if we should separate the object types and be more explicit.

Google doesn't seem to have an issue with this. It reads the objects just fine in the structured testing tools we have checked. But not sure if we're being dinged somewhere in the stack.

Any insight on whether this is good or bad would be helpful.
Details
Relevant Answer Relevant Answers (0)
All Replies (3)
Relevant Answer
I have used a similar concept for Organization, Website and it worked fine. I didn't notice any issues.
I can't speak of harm or good though. I'd say give it a try and see, just make sure the Schema is correct.
marked this as an answer
Relevant Answer
Hello Emma Ann
 
Stop spamming the forum.
 
In order not to confuse different sites and different issues, can you please post your own thread? 
 
marked this as an answer
This question is locked and replying has been disabled.
Discard post? You will lose what you have written so far.
Write a reply
10 characters required
Failed to attach file, click here to try again.
Discard post?
You will lose what you have written so far.
Personal information found

We found the following personal information in your message:

This information will be visible to anyone who visits or subscribes to notifications for this post. Are you sure you want to continue?

A problem occurred. Please try again.
Create Reply
Edit Reply
Delete post?
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.
Report abuse
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
Report post
What type of post are you reporting?
Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action. We'll get back to you only if we require additional details or have more information to share.

Go to the Legal Help page to request content changes for legal reasons.

Reported post for abuse
Unable to send report.
This reply is no longer available.
/webmasters/threads
//accounts.google.com/ServiceLogin
You'll receive email notifications for new posts at
Unable to delete question.
Unable to update vote.
Unable to update subscription.
You have been unsubscribed
Deleted
Unable to delete reply.
Removed from Answers
Marked as Recommended Answer
Removed recommendation
Undo
Unable to update reply.
Unable to update vote.
Thank you. Your response was recorded.
Unable to undo vote.
Thank you. This reply will now display in the answers section.
Link copied
Locked
Unlocked
Unable to lock
Unable to unlock
Pinned
Unpinned
Unable to pin
Unable to unpin
Marked
Unmarked
Unable to mark
Reported as off topic
/webmasters/profile/0