Created
October 20, 2018 17:05
-
-
Save zac11/6b3ac339729fc0465beeb59c53662390 to your computer and use it in GitHub Desktop.
This file contains 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('joi'); | |
module.exports = { | |
schema : joi.object().keys({ | |
page : joi.number().integer().required(), | |
per_page: joi.number().integer().required(), | |
total : joi.number().integer().required(), | |
total_pages: joi.number().integer().required(), | |
data : joi.array().items(joi.object({ | |
id: joi.number().integer().required(), | |
first_name : joi.string().required(), | |
last_name : joi.string().required(), | |
avatar : joi.string().uri().required() | |
})) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment