completed bus schemas
This commit is contained in:
parent
59c60472a5
commit
4157447337
1 changed files with 36 additions and 4 deletions
|
@ -27,13 +27,45 @@ module.exports =
|
||||||
$ref: "bus"
|
$ref: "bus"
|
||||||
|
|
||||||
"bus:new-message":
|
"bus:new-message":
|
||||||
{} # TODO schema
|
title: "Message sent"
|
||||||
|
$schema: "http://json-schema.org/draft-04/schema#"
|
||||||
|
description: "A new message was sent"
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
message:
|
||||||
|
type: "string"
|
||||||
|
bus:
|
||||||
|
$ref: "bus"
|
||||||
|
|
||||||
"bus:player-joined":
|
"bus:player-joined":
|
||||||
{} # TODO schema
|
title: "Player joined"
|
||||||
|
$schema: "http://json-schema.org/draft-04/schema#"
|
||||||
|
description: "A new player has joined"
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
player:
|
||||||
|
type: "object"
|
||||||
|
bus:
|
||||||
|
$ref: "bus"
|
||||||
|
|
||||||
"bus:player-left":
|
"bus:player-left":
|
||||||
{} # TODO schema
|
title: "Player left"
|
||||||
|
$schema: "http://json-schema.org/draft-04/schema#"
|
||||||
|
description: "A player has left"
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
player:
|
||||||
|
type: "object"
|
||||||
|
bus:
|
||||||
|
$ref: "bus"
|
||||||
|
|
||||||
"bus:player-states-changed":
|
"bus:player-states-changed":
|
||||||
{} # TODO schema
|
title: "Player state changes"
|
||||||
|
$schema: "http://json-schema.org/draft-04/schema#"
|
||||||
|
description: "State of the players has changed"
|
||||||
|
type: "object"
|
||||||
|
properties:
|
||||||
|
player:
|
||||||
|
type: "array"
|
||||||
|
bus:
|
||||||
|
$ref: "bus"
|
||||||
|
|
Reference in a new issue