[
  {"key": "client", "type": "object", "label": "Client", "required": true, "fields": [
    {"key": "full_name", "type": "string", "label": "Full name", "required": true, "example": "Andrey Sgurskiy",
     "constraints": {"maxLength": 120}},
    {"key": "email", "type": "string", "label": "E-mail"}
  ]},
  {"key": "risk_profile", "type": "object", "label": "Risk profile", "required": true, "fields": [
    {"key": "name", "type": "string", "label": "Profile name", "required": true, "example": "Income + Growth Investor"},
    {"key": "description", "type": "string", "label": "Description"}
  ]},
  {"key": "advisor", "type": "object", "label": "Advisor contacts", "fields": [
    {"key": "site", "type": "string", "default": "accuvest.com"},
    {"key": "phone", "type": "string", "default": "Tel 925-930-2882"}
  ]},
  {"key": "market_outlook", "type": "object", "label": "Market outlook", "fields": [
    {"key": "title", "type": "string", "label": "Title"},
    {"key": "subtitle", "type": "string", "label": "Subtitle"},
    {"key": "factors", "type": "array", "label": "Factors", "items": {"type": "object", "fields": [
      {"key": "title", "type": "string", "required": true},
      {"key": "icon", "type": "string"},
      {"key": "score", "type": "number", "required": true, "constraints": {"minimum": 0, "maximum": 100}},
      {"key": "color", "type": "string", "constraints": {"pattern": "^#[0-9A-Fa-f]{6}$"}},
      {"key": "status", "type": "string"}
    ]}}
  ]}
]
