0.10.3 • Published 7 years ago
json-schema-fluent-builder v0.10.3
A simple package to build json schemas
This package allows to fluent build schemas based on draft-04 to validate json objects.
Getting started
var SchemaBuilder = require("json-schema-fluent-builder").SchemaBuilder;
var schema = new SchemaBuilder().object();
schema.props({
name: new SchemaBuilder().string(),
age: new SchemaBuilder().int(),
birthDate: new SchemaBuilder().string().format("date-time")
}).required("name");
console.log(schema.getSchema());
// {
// "type": "object",
// "properties": {
// "name": {
// "type": "string"
// },
// "age": {
// "type": "integer"
// },
// "birthDate": {
// "type": "string",
// "format": "date-time"
// }
// },
// "required": [
// "name"
// ]
// }
0.10.3
7 years ago
0.10.2
7 years ago
0.10.1
7 years ago
0.10.0
7 years ago
0.9.18
8 years ago
0.9.17
8 years ago
0.9.16
8 years ago
0.9.15
8 years ago
0.9.14
8 years ago
0.9.13
8 years ago
0.9.12
8 years ago
0.9.11
8 years ago
0.9.10
8 years ago
0.9.9
8 years ago
0.9.8
8 years ago
0.9.7
8 years ago
0.9.6
8 years ago
0.9.5
8 years ago
0.9.4
8 years ago
0.9.3
8 years ago
0.9.2
8 years ago
0.9.1
8 years ago
0.9.0
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago