UNPKG
rest-express
Version:
latest (1.2.0)
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
A rest api framework based on express.
github.com/hstarorg/rest-express
hstarorg/rest-express
rest-express
/
examples
/
bizs
/
schemaStore.js
11 lines
(8 loc)
•
230 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
Joi = require(
'joi'
);
const
TEST_SCHEMA = Joi.
object
().keys({ key1: Joi.
string
().
required
().description(
'test'
).example(
'aa'
), key2: Joi.number().greater(
5
).
required
() }); module.exports = { TEST_SCHEMA };