UNPKG

@openactive/data-models

Version:

Data models used to drive that OpenActive validator, developer documentation, and model libraries

89 lines (88 loc) 2.82 kB
{ "type": "OpeningHoursSpecification", "derivedFrom": "https://schema.org/OpeningHoursSpecification", "hasId": false, "requiredFields": [ "type", "dayOfWeek", "opens", "closes" ], "inSpec": [ "type", "opens", "closes", "dayOfWeek", "validFrom", "validThrough" ], "validationMode": { "RPDEFeed": "feed", "BookableRPDEFeed": "feed" }, "imperativeConfigurationWithContext": { "feed": { "specialOpeningHoursSpecification": { "requiredFields": [ "type", "opens", "closes", "validFrom", "validThrough" ] } } }, "fields": { "type": { "fieldName": "type", "requiredType": "https://schema.org/Text", "requiredContent": "OpeningHoursSpecification" }, "closes": { "fieldName": "closes", "sameAs": "https://schema.org/closes", "requiredType": "https://schema.org/Time", "description": [ "The closing time. Set \"00:00\" for the value of `opens` and `closes` to indicated the `Place` is closed on the specified days." ], "example": "17:00" }, "dayOfWeek": { "fieldName": "dayOfWeek", "sameAs": "https://schema.org/dayOfWeek", "requiredType": "ArrayOf#https://schema.org/DayOfWeek", "example": [ "https://schema.org/Saturday", "https://schema.org/Sunday" ], "description": [ "Defines the days of the week upon which the `opens` and `closes` values are specified. Note this property is optional when used within `specialOpeningHoursSpecification`." ] }, "opens": { "fieldName": "opens", "sameAs": "https://schema.org/opens", "requiredType": "https://schema.org/Time", "description": [ "The opening time. Set \"00:00\" for the value of `opens` and `closes` to indicated the `Place` is closed on the specified days." ], "example": "09:00" }, "validFrom": { "fieldName": "validFrom", "sameAs": "https://schema.org/validFrom", "requiredType": "https://schema.org/Date", "description": [ "The date when the item becomes valid. The item will be valid at the beginning of the specified day. Note this property is required when used within `specialOpeningHoursSpecification`." ], "example": "2018-01-22" }, "validThrough": { "fieldName": "validThrough", "sameAs": "https://schema.org/validThrough", "requiredType": "https://schema.org/Date", "description": [ "The date after which the item is no longer valid. The item will cease to be valid at the end of the specified day. Note this property is required when used within `specialOpeningHoursSpecification`." ], "example": "2018-01-27" } } }