From ee0b4ec49d8b93af9015920b65eb8d04f65e84cf Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Thu, 5 Oct 2023 15:44:07 +0000 Subject: [PATCH] User: dan@sartography.com clicked save for examples/0-2-basic-example/norris-schema.json --- examples/0-2-basic-example/norris-schema.json | 15 ++++++++++++--- examples/0-2-basic-example/norris-uischema.json | 8 ++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/examples/0-2-basic-example/norris-schema.json b/examples/0-2-basic-example/norris-schema.json index 46a8ff2a..8be6cfe1 100644 --- a/examples/0-2-basic-example/norris-schema.json +++ b/examples/0-2-basic-example/norris-schema.json @@ -1,8 +1,12 @@ { - "title": "Nested Form / Repeating Section", - "description": "Allow the form submitter to add multiple entries for a set of fields.", + "title": "Text Field", + "description": "A simple text field that is required, has a default value, sets a placeholder, includes a description. (field name will be 'firstname')", "type": "object", - "required": ["pushups","thanos","bulletproof"], + "required": [ + "firstName", + "thanos", + "bulletproof" + ], "properties": { "pushups": { "type": "boolean", @@ -45,6 +49,11 @@ "const": false } ] + }, + "firstName": { + "type": "string", + "title": "First name", + "default": "Chuck" } } } \ No newline at end of file diff --git a/examples/0-2-basic-example/norris-uischema.json b/examples/0-2-basic-example/norris-uischema.json index f462f910..eefac31e 100644 --- a/examples/0-2-basic-example/norris-uischema.json +++ b/examples/0-2-basic-example/norris-uischema.json @@ -16,5 +16,13 @@ "ui:options": { "inline": true } + }, + "firstName": { + "ui:autofocus": true, + "ui:emptyValue": "", + "ui:placeholder": "ui:emptyValue causes this field to always be valid despite being required", + "ui:autocomplete": "family-name", + "ui:enableMarkdownInDescription": true, + "ui:description": "Make text **bold** or *italic*. Take a look at other options [here](https://probablyup.com/markdown-to-jsx/)." } } \ No newline at end of file