Title: Include opens and closes values in auto-generated LocalBusiness schema
Current behavior:
SmartDirectoryAI correctly generates LocalBusiness JSON-LD from listing data, including business name, description, phone, email, address, images, and an openingHoursSpecification array when business hours are entered.
However, the generated hours schema currently includes only the dayOfWeek values and omits the actual opening and closing times.
Example of current output:
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Monday"
}
Expected behavior:
When a listing has opening and closing times entered in the native Business Hours section, the generated schema should include those values:
{
"@type": "OpeningHoursSpecification",
"dayOfWeek": "Monday",
"opens": "06:00",
"closes": "22:00"
}
For days with identical hours, grouping multiple days into one OpeningHoursSpecification object would also be acceptable.
Why this matters:
The visible listing page already shows the correct business hours, but the structured data does not expose those times to search engines and AI agents. This creates an incomplete schema record and may reduce the reliability of AI/search answers about when a business is open.
Recommended implementation:
Map the existing native Business Hours fields directly into the generated openingHoursSpecification, including:
dayOfWeek
opens
closes
handling for closed days
handling for overnight hours, if supported
omission of hours when no valid times are entered
Important:
This should enrich the existing auto-generated LocalBusiness schema rather than create a second duplicate LocalBusiness block.