Revert `required`s

They're not boolean flags for object fields
pull/977/head
David Baker 8 years ago
parent 14944fe237
commit af2c74c186

@ -93,7 +93,6 @@ paths:
type: object type: object
properties: properties:
next_token: next_token:
required: false
type: string type: string
description: |- description: |-
The token to supply in the ``from`` param of the next The token to supply in the ``from`` param of the next
@ -101,15 +100,12 @@ paths:
events. If this is absent, there are no more results. events. If this is absent, there are no more results.
notifications: notifications:
type: array type: array
required: true
items: items:
type: object type: object
title: Notification title: Notification
required: true
properties: properties:
actions: actions:
type: array type: array
required: true
description: |- description: |-
The action(s) to perform when the conditions for this rule are met. The action(s) to perform when the conditions for this rule are met.
See `Push Rules: API`_. See `Push Rules: API`_.
@ -117,28 +113,23 @@ paths:
type: string type: string
event: event:
type: object type: object
required: true
title: Event title: Event
description: The Event object for the event that triggered the notification. description: The Event object for the event that triggered the notification.
allOf: allOf:
- "$ref": "definitions/event.yaml" - "$ref": "definitions/event.yaml"
profile_tag: profile_tag:
type: string type: string
required: false
description: The profile tag of the rule that matched this event. description: The profile tag of the rule that matched this event.
read: read:
type: boolean type: boolean
required: true
description: |- description: |-
Indicates whether the user has sent a read receipt indicating Indicates whether the user has sent a read receipt indicating
that they have read this message. that they have read this message.
room_id: room_id:
type: string type: string
required: true
description: The ID of the room in which the event was posted. description: The ID of the room in which the event was posted.
ts: ts:
type: integer type: integer
required: true
description: |- description: |-
The unix timestamp at which the event notification was sent, The unix timestamp at which the event notification was sent,
in milliseconds. in milliseconds.

Loading…
Cancel
Save