schema-aggregator

FoodAndBeverageResource Schema

Container: Resource.resourceAttributes Protocol Version: 2.0 Semantic Model: generalised Use Cases: Prepared foods, beverages, restaurant items, catered meals Tag: food and beverage resource

Overview

Food and beverage-specific resource attributes for prepared foods and beverages on Beckn v2.1. Extends RetailResource via allOf to add allergens, cuisine type, and preparation instructions.

Migrated from FoodAndBeverageItem (v2). Important migration note: In v2, FoodAndBeverageItem contained fields like resourceId, lineId, offerId, quantity, and price. These have moved to RetailCommitment in v2.1 (line-level commitment data) and RetailOffer (pricing and commercial terms). Only semantic food and beverage properties remain in resourceAttributes.

The container changes from itemAttributes to resourceAttributes to align with the v2.1 generalised Resource model.

Attachment Points

Design Rationale

Non-Goals

Examples