// example.js
const builders = require('@tradle/build-model')
const model = builders.model({ models })
.id('tradle.BlahProduct')
.subClassOf('tradle.FinancialProduct')
.forms(['tradle.AboutYou'])
.properties({
blah: builders.property()
.type('string')
.readOnly(true)
.title('No, really, blah'),
blahblah: builders.property()
.type('date'),
blahblahblah: builders.property()
.type('object')
.ref('tradle.Photo')
})
.toJSON()
console.log(JSON.stringify(model, null, 2))
-
Notifications
You must be signed in to change notification settings - Fork 1
tradle/build-model
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published