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/user.schema.coffee

22 lines
445 B
CoffeeScript
Raw Normal View History

2019-02-19 18:57:22 +00:00
module.exports =
2019-02-16 18:04:16 +00:00
body:
2019-05-07 15:37:07 +00:00
session: type: 'string'
2019-02-16 18:04:16 +00:00
login: type: 'string'
password: type: 'string'
response:
200:
type: 'object'
required: ['success']
properties:
success: type: 'boolean'
2019-05-07 15:37:07 +00:00
message: type: 'string'
# message is required iff not success
2019-02-16 18:04:16 +00:00
if:
properties:
success:
2019-05-07 15:37:07 +00:00
const: false
2019-02-16 18:04:16 +00:00
then:
2019-05-07 15:37:07 +00:00
required: ['message']
else: true