4
{
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": [
        "Sunday"
    ],
    "Hours": "Closed"
}

I get the following error:

Closed (The property Hours is not recognized by Google for an object of type OpeningHoursSpecification.)

This is how i am doing a weekday

  {
        "@type": "OpeningHoursSpecification",
        "dayOfWeek": [
            "Friday"
        ],
        "Hours" :"10:00 - 17:30"
    },
3

Maybe i don't understand exactly your purposes, but as stated in the Schema.org/OpeningHoursSpecification documentation

The place is open if the opens property is specified, and closed otherwise.

According to this i would set only opening times by implication of closed is when not open.

PS to go into the case rised by @StephenOstermiller: to deal with exceptions like holidays there is a following standard-conform workaround:

  • The Date format, which is ISO 8601, allows setup of durations, time intervals and repeating intervals and, further, combinations of date and time.
  • These data can be implemented by validFrom / validThrough
  • How about the case where you would normally be open on Mondays but you have to specify a Monday holiday where you would be closed? – Stephen Ostermiller Sep 16 at 12:52
  • so monday i open 9-5 for sunday what do i put i dont open on sundays – jibin george Sep 16 at 12:55
  • @StephenOstermiller Yes, i have had such case - to get it the first time was veeeery tricky for me. Finally i've got a solution using validity (validFrom validThrough) and the date, which allows repeatable dates too. – Evgeniy Sep 16 at 12:58
  • 2
    @jibingeorge - for sunday - just nothing. Put only: open monday-saturday 9-17. – Evgeniy Sep 16 at 12:59
  • Thank you for that @Evgeniy – jibin george Sep 16 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.