Created
November 7, 2017 15:34
-
-
Save dgolant/688b2d15b8fe20aeeb1e1f3da64ac0cf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Joi } = require(‘celebrate’); | |
const links_POST_schema = Joi.object().keys({ | |
access_token: Joi.string(), | |
id_token: Joi.string(), | |
url: Joi.string().required(), | |
title: Joi.string().required() | |
}).xor(‘access_token’, ‘id_token’); | |
module.exports = links_POST_schema; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment