ginsul

Untitled

Jul 18th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.15 KB | None | 0 0
  1. {
  2.     "document1": {
  3.         "form1": {
  4.             "formData": {
  5.                 "_META": "#formData holds field values",
  6.                 "firstName": "Bob",
  7.                 "lastName": "Bobbinson",
  8.                 "age": "28",
  9.                 "email": "[email protected]"
  10.             },
  11.             "dataSpec": {
  12.                 "_META": "#dataSpec defines field types and validation",
  13.                 "firstName": {
  14.                     "type": "string"
  15.                 },
  16.                 "lastName": {
  17.                     "type": "string"
  18.                 },
  19.                 "age": {
  20.                     "type": "integer",
  21.                     "minimum": 18,
  22.                     "maximum": 65
  23.                 },
  24.                 "email": {
  25.                     "type": "string",
  26.                     "format": "email"
  27.                 }
  28.             },
  29.             "chatUISpec": {
  30.                 "_META": "#chatUISpec is for the conversational UI: associates fields to widgets, can add outputOnly widgets for extra output (text, images, videos)",
  31.                 "hello": {
  32.                     "widgetId": "textField",
  33.                     "widgetParams": {
  34.                         "readOnly": true,
  35.                         "value": "Hi!"
  36.                     }
  37.                 },
  38.                 "firstName": {
  39.                     "widgetId": "textField"
  40.                 },
  41.                 "lastName": {
  42.                     "widgetId": "textField"
  43.                 },
  44.                 "age": {
  45.                     "widgetId": "numberSlider"
  46.                 },
  47.                 "email": {
  48.                     "widgetId": "textField"
  49.                 }
  50.             },
  51.             "formUISpec": {
  52.                 "_META": "#same as chatUISpec"
  53.  
  54.             }
  55.         }
  56.     }
  57. }
Advertisement
Add Comment
Please, Sign In to add comment