module.exports =
  body:
    session:  type: 'string'
    login:    type: 'string'
    password: type: 'string'

  response:
    200:
      type: 'object'
      required: ['success']
      properties:
        success:  type: 'boolean'
        message:  type: 'string'
      # message is required iff not success
      if:
        properties:
          success:
            const: false
      then:
        required: ['message']
      else: true
