This repository has been archived by the owner on May 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Spec
nickjackson edited this page Dec 11, 2012
·
4 revisions
Specification for the JSON Schema to create dynamic forms. A work in progress.
- String
- Number
- Date
- Boolean
- Object
Use the following schemas to create a ...
username: {
title: "Username",
type: "String"
}
gender: {
title: "Gender",
type: "String",
options: {
male: "Male",
female: "Female"
}
}
subscribe: {
title: "Subscribe to our newsletter",
type: "Boolean",
default: "true"
}
Renders 3 Selects, DD MM YYYY
published: {
title: "Date Published",
type: "Date"
}
SubSchemas are to be used when you wish to group certain properties under another. For example, you may wish to group first and last names of an author.
favAuthor: {
title: "Favourite Author",
type: "Object",
properties: {
forename: {
title: "Forename",
type: "String"
},
surname: {
title: "Surname",
type: "String"
}
}
}