Skip to content

Instantly share code, notes, and snippets.

@dgolant
Created November 7, 2017 15:34
Show Gist options
  • Save dgolant/688b2d15b8fe20aeeb1e1f3da64ac0cf to your computer and use it in GitHub Desktop.
Save dgolant/688b2d15b8fe20aeeb1e1f3da64ac0cf to your computer and use it in GitHub Desktop.
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