{
  "id": "app-contract",
  "version": 2,
  "fields": [
    { "path": "referenceId", "type": "string", "nullable": false, "maxLength": 50 },
    { "path": "applicant.fullName", "type": "string", "nullable": false },
    { "path": "applicant.dob", "type": "date", "nullable": false },
    { "path": "passport.number", "type": "string", "nullable": false },
    { "path": "passport.expiryDate", "type": "date", "nullable": false },
    { "path": "finance.bankBalance", "type": "number", "nullable": true },
    { "path": "trip.cost", "type": "number", "nullable": false },
    { "path": "trip.purpose", "type": "string", "nullable": false, "allowedValues": ["tourism", "family_visit", "business"] }
  ]
}
