mirror of
https://github.com/zhigang1992/react-jsonschema-form.git
synced 2026-01-12 17:33:12 +08:00
Use Lerna to maintain core and themes as a monorepo. This should streamline creation of new themes and maintenance of existing theme(s).
60 lines
1.1 KiB
JavaScript
60 lines
1.1 KiB
JavaScript
module.exports = {
|
|
schema: {
|
|
type: "object",
|
|
properties: {
|
|
age: {
|
|
type: "integer",
|
|
title: "Age",
|
|
},
|
|
items: {
|
|
type: "array",
|
|
items: {
|
|
type: "object",
|
|
anyOf: [
|
|
{
|
|
properties: {
|
|
foo: {
|
|
type: "string",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
properties: {
|
|
bar: {
|
|
type: "string",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
anyOf: [
|
|
{
|
|
title: "First method of identification",
|
|
properties: {
|
|
firstName: {
|
|
type: "string",
|
|
title: "First name",
|
|
default: "Chuck",
|
|
},
|
|
lastName: {
|
|
type: "string",
|
|
title: "Last name",
|
|
},
|
|
},
|
|
},
|
|
{
|
|
title: "Second method of identification",
|
|
properties: {
|
|
idCode: {
|
|
type: "string",
|
|
title: "ID code",
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
formData: {},
|
|
};
|