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).
71 lines
1.5 KiB
JavaScript
71 lines
1.5 KiB
JavaScript
module.exports = {
|
|
schema: {
|
|
title: "Schema default properties",
|
|
type: "object",
|
|
properties: {
|
|
valuesInFormData: {
|
|
title: "Values in form data",
|
|
$ref: "#/definitions/defaultsExample",
|
|
},
|
|
noValuesInFormData: {
|
|
title: "No values in form data",
|
|
$ref: "#/definitions/defaultsExample",
|
|
},
|
|
},
|
|
definitions: {
|
|
defaultsExample: {
|
|
type: "object",
|
|
properties: {
|
|
scalar: {
|
|
title: "Scalar",
|
|
type: "string",
|
|
default: "scalar default",
|
|
},
|
|
array: {
|
|
title: "Array",
|
|
type: "array",
|
|
items: {
|
|
type: "object",
|
|
properties: {
|
|
nested: {
|
|
title: "Nested array",
|
|
type: "string",
|
|
default: "nested array default",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
object: {
|
|
title: "Object",
|
|
type: "object",
|
|
properties: {
|
|
nested: {
|
|
title: "Nested object",
|
|
type: "string",
|
|
default: "nested object default",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
uiSchema: {},
|
|
formData: {
|
|
valuesInFormData: {
|
|
scalar: "value",
|
|
array: [
|
|
{
|
|
nested: "nested array value",
|
|
},
|
|
],
|
|
object: {
|
|
nested: "nested object value",
|
|
},
|
|
},
|
|
noValuesInFormData: {
|
|
array: [{}, {}],
|
|
},
|
|
},
|
|
};
|