broidHQ / integrations

Connect your App to Multiple Messaging Channels with the W3C Open standard.
https://www.broid.ai
GNU Affero General Public License v3.0
746 stars 83 forks source link

Schema/update #178

Open jeanbaptistemorin opened 7 years ago

jeanbaptistemorin commented 7 years ago

🤖 🤖, small PR on schemas!

What do you think?

CLAassistant commented 7 years ago

CLA assistant check
All committers have signed the CLA.

jeanbaptistemorin commented 7 years ago

@killix thanks! Reverted the object/object back with

type: object
properties:
  id:
    type: string
  type:
    type: string
    enum: [ Note, Image, Video, Audio, Place, Document ]
required: [ id, type ]

to fit the doc. Is that correct?

Note for later: As Note, Media, Place... inherits object, maybe that inheritance could be mapped with a allOf later?

jeanbaptistemorin commented 7 years ago

Forgot the attachements. ✋ Will add that 🕐