UNPKG
tame-validator
Version:
latest (0.1.0)
0.1.0
0.0.2
0.0.1
Validator module for tame schema
gitlab.com/Jaiswal-ruhil/tame-validator
tame-validator
/
README.md
21 lines
(16 loc)
•
262 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# tame-validator
validates the schema
## API :
```js
var
schemaValidator =
require
(
'tame-validator'
).schemaValidator;
const
schema
= { name:
"Foo"
, fields: [ { name:
"bar"
, type:
"String"
} ] } schemaValidator.
validate
(schema); ```