This repository has been archived on 2024-04-29. You can view files and clone it, but cannot push or open issues or pull requests.
node-fftcg/backend/routes/user/info.schema.coffee

25 lines
564 B
CoffeeScript
Raw Normal View History

2019-05-09 12:31:54 +00:00
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