0.2.7 • Published 7 years ago
vineyard-schema v0.2.7
Vineyard Schema
Vineyard Schema is a library for defining data structures and their relationships. The definition for a schema is normally stored in a JSON file.
Defining a Schema
import {Schema} from 'vineyard-schema'
const schema = new Schema({
Character: {
properties: {
name: {
type: "string"
},
items: {
type: "list",
trellis: "Item"
},
}
},
Item: {
properties: {
name: {
type: "string"
},
character: {
type: "Character",
},
}
},