From b9f9e41f37b9e54c9bcd0533a8d4380e342e0a40 Mon Sep 17 00:00:00 2001 From: sartography-automated-committer Date: Tue, 24 Oct 2023 15:13:20 +0000 Subject: [PATCH] User: usama@sartography.com clicked save for examples/1-basic-concepts/1-2-forms/test-schema.json --- .../1-basic-concepts/1-2-forms/test-schema.json | 16 +++++++++++++++- .../1-2-forms/test-uischema.json | 11 ++++++++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/examples/1-basic-concepts/1-2-forms/test-schema.json b/examples/1-basic-concepts/1-2-forms/test-schema.json index 9e26dfee..14528a4e 100644 --- a/examples/1-basic-concepts/1-2-forms/test-schema.json +++ b/examples/1-basic-concepts/1-2-forms/test-schema.json @@ -1 +1,15 @@ -{} \ No newline at end of file +{ + "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": [ + "firstName" + ], + "properties": { + "firstName": { + "type": "string", + "title": "First name", + "default": "Chuck" + } + } +} \ No newline at end of file diff --git a/examples/1-basic-concepts/1-2-forms/test-uischema.json b/examples/1-basic-concepts/1-2-forms/test-uischema.json index 9e26dfee..411a28d3 100644 --- a/examples/1-basic-concepts/1-2-forms/test-uischema.json +++ b/examples/1-basic-concepts/1-2-forms/test-uischema.json @@ -1 +1,10 @@ -{} \ No newline at end of file +{ + "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