0.2.7 • Published 7 years ago

vineyard-schema v0.2.7

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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",
            },
        }
    },
        
        
0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago