Updating Customer Schema
emmayank opened this issue · 1 comments
emmayank commented
Enhancing Customer Schema
We need ID and organization detail in the customer schema
Solution
Make the following changes to the Customer Schema
- Updating Customer schema to include an ID property that will be used to identify a customer
- Updating Customer schema to include the organization property that is a reference to the Organization schema.
Customer:
description: Describes a customer buying/availing a product or a service
type: object
properties:
id:
description: ID of the customer.
type: string
person:
$ref: '#/components/schemas/Person'
organization:
$ref: '#/components/schemas/Organization'
contact:
$ref: '#/components/schemas/Contact'