25 lines
564 B
CoffeeScript
25 lines
564 B
CoffeeScript
|
module.exports =
|
||
|
body:
|
||
|
session: type: 'string'
|
||
|
response:
|
||
|
200:
|
||
|
type: 'object'
|
||
|
required: ['success']
|
||
|
properties:
|
||
|
success: type: 'boolean'
|
||
|
user:
|
||
|
type: 'object'
|
||
|
required: ['user', 'login', 'settings']
|
||
|
properties:
|
||
|
user: type: 'integer'
|
||
|
login: type: 'string'
|
||
|
settings: type: 'string'
|
||
|
# user is required iff success
|
||
|
if:
|
||
|
properties:
|
||
|
success:
|
||
|
const: true
|
||
|
then:
|
||
|
required: ['user']
|
||
|
else: true
|