Added JSON schema to Device using spumko/joi