Skip to content

Latest commit

 

History

History
232 lines (122 loc) · 4.15 KB

File metadata and controls

232 lines (122 loc) · 4.15 KB

Restaurant Schema

https://ns.adobe.com/xdm/classes/restaurant

For restaurant information such as address, cuisine, ID and name.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Defined In
Can be instantiated Yes Stable No Forbidden Permitted classes/restaurant.schema.json

Schema Hierarchy

  • Restaurant https://ns.adobe.com/xdm/classes/restaurant

Restaurant Example

{
  "xdm:acceptsReservations": true,
  "xdm:restaurantName": "Sugarfire",
  "xdm:restaurantID": "SFSC63301",
  "xdm:cuisine": [
    "barbecue"
  ],
  "xdm:deliveryPartners": [
    "grubhub",
    "doordash"
  ],
  "xdm:diningOptions": [
    "delivery",
    "takeout"
  ]
}

Restaurant Properties

Property Type Required Defined by
@id string Optional Record Schema
xdm:acceptsReservations boolean Optional Restaurant (this schema)
xdm:address Postal address Optional Restaurant (this schema)
xdm:cuisine enum[] Optional Restaurant (this schema)
xdm:deliveryPartners enum[] Optional Restaurant (this schema)
xdm:diningOptions enum[] Optional Restaurant (this schema)
xdm:restaurantID string Optional Restaurant (this schema)
xdm:restaurantName string Optional Restaurant (this schema)
* any Additional this schema allows additional properties

@id

Identifier

A unique identifier for the record.

@id

@id Type

string

  • format: uri-reference – URI Reference (according to RFC3986)

xdm:acceptsReservations

Accepts Reservations

Flags if the restaurant accepts reservations.

xdm:acceptsReservations

  • is optional
  • type: boolean
  • defined in this schema

xdm:acceptsReservations Type

boolean

xdm:address

Address

Physicial address where the restaurant is located.

xdm:address

  • is optional
  • type: Postal address
  • defined in this schema

xdm:address Type

xdm:cuisine

Cuisine

Type of restaurant cuisine(s).

xdm:cuisine

  • is optional

  • type: enum[]

  • defined in this schema

xdm:cuisine Type

Array type: enum[]

All items must be of the type: string

xdm:deliveryPartners

Delivery Partners

Delivery partners available from the restaurant.

xdm:deliveryPartners

  • is optional

  • type: enum[]

  • defined in this schema

xdm:deliveryPartners Type

Array type: enum[]

All items must be of the type: string

xdm:diningOptions

Dining Options

Delivery and dining options available from the restaurant.

xdm:diningOptions

  • is optional

  • type: enum[]

  • defined in this schema

xdm:diningOptions Type

Array type: enum[]

All items must be of the type: string

xdm:restaurantID

Restaurant ID

ID associated with the restaurant.

xdm:restaurantID

  • is optional
  • type: string
  • defined in this schema

xdm:restaurantID Type

string

xdm:restaurantName

Restaurant Name

Name associated with the restaurant.

xdm:restaurantName

  • is optional
  • type: string
  • defined in this schema

xdm:restaurantName Type

string