codecombat/app/schemas/subscriptions/bus.coffee

72 lines
1.7 KiB
CoffeeScript
Raw Normal View History

module.exports =
2014-06-30 22:16:26 -04:00
'bus:connecting':
title: 'Bus Connecting'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published when a Bus starts connecting'
type: 'object'
properties:
bus:
2014-06-30 22:16:26 -04:00
$ref: 'bus'
2014-06-30 22:16:26 -04:00
'bus:connected':
title: 'Bus Connected'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published when a Bus has connected'
type: 'object'
2014-04-13 06:31:12 -04:00
properties:
bus:
2014-06-30 22:16:26 -04:00
$ref: 'bus'
2014-06-30 22:16:26 -04:00
'bus:disconnected':
title: 'Bus Disconnected'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'Published when a Bus has disconnected'
type: 'object'
2014-04-13 06:31:12 -04:00
properties:
bus:
2014-06-30 22:16:26 -04:00
$ref: 'bus'
2014-06-30 22:16:26 -04:00
'bus:new-message':
title: 'Message sent'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'A new message was sent'
type: 'object'
2014-04-13 09:23:24 -04:00
properties:
message:
2014-06-30 22:16:26 -04:00
type: 'object'
2014-04-13 09:23:24 -04:00
bus:
2014-06-30 22:16:26 -04:00
$ref: 'bus'
2014-06-30 22:16:26 -04:00
'bus:player-joined':
title: 'Player joined'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'A new player has joined'
type: 'object'
2014-04-13 09:23:24 -04:00
properties:
player:
2014-06-30 22:16:26 -04:00
type: 'object'
2014-04-13 09:23:24 -04:00
bus:
2014-06-30 22:16:26 -04:00
$ref: 'bus'
2014-06-30 22:16:26 -04:00
'bus:player-left':
title: 'Player left'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'A player has left'
type: 'object'
2014-04-13 09:23:24 -04:00
properties:
player:
2014-06-30 22:16:26 -04:00
type: 'object'
2014-04-13 09:23:24 -04:00
bus:
2014-06-30 22:16:26 -04:00
$ref: 'bus'
2014-06-30 22:16:26 -04:00
'bus:player-states-changed':
title: 'Player state changes'
$schema: 'http://json-schema.org/draft-04/schema#'
description: 'State of the players has changed'
type: 'object'
2014-04-13 09:23:24 -04:00
properties:
player:
2014-06-30 22:16:26 -04:00
type: 'array'
2014-04-13 09:23:24 -04:00
bus:
2014-06-30 22:16:26 -04:00
$ref: 'bus'