0% found this document useful (0 votes)
4 views

Dev API JSON

The document outlines a series of mandatory fields required for data input, including Financial Year, Gross Income, Taxable Income, Savings, % Savings, and Gender. Each field has specific validation rules, primarily using regex patterns to ensure values meet certain criteria, such as being greater than specified thresholds. The Gender field requires selection from defined options (Male or Female).

Uploaded by

vickypachori1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Dev API JSON

The document outlines a series of mandatory fields required for data input, including Financial Year, Gross Income, Taxable Income, Savings, % Savings, and Gender. Each field has specific validation rules, primarily using regex patterns to ensure values meet certain criteria, such as being greater than specified thresholds. The Gender field requires selection from defined options (Male or Female).

Uploaded by

vickypachori1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

"questionDetails": [

{
"fieldId": 1,
"seq": 1,
"jsonPropName": "FY",
"isMandatory": "true",
"name": "Financial Year",
"type": "integer",
"validationRegex": [
{
"type": "regex",
"message": "Greater Than Regex not satisfied
Error Message",
"rule": "pattern for greater than 1950"
},
{
"type": "regex",
"message": "Less Than Regex not satisfied Error
Message",
"rule": "pattern for less than 2022"
}
]
},
{
"fieldId": 2,
"seq": 2,
"jsonPropName": "GrossIncome",
"isMandatory": "true",
"name": "Gross Income",
"type": "decimal",
"validationRegex": [
{
"type": "regex",
"message": "Greater Than Regex not satisfied
Error Message",
"rule": "pattern for greater than 0"
}
]
},
{
"fieldId": 3,
"seq": 3,
"jsonPropName": "TaxableIncome",
"isMandatory": "true",
"name": "Taxable Income",
"type": "demical",
"validationRegex": [
{
"type": "regex",
"message": "Greater Than Regex not satisfied
Error Message",
"rule": "pattern for greater than 0"
}
]
},
{
"fieldId": 4,
"seq": 4,
"jsonPropName": "Savings",
"isMandatory": "true",
"name": "Savings",
"type": "decimal",
"validationRegex": [
{
"type": "regex",
"message": "Greater Than Regex not satisfied
Error Message",
"rule": "pattern for greater than 0"
}
]
},
{
"fieldId": 5,
"seq": 5,
"jsonPropName": "%Savings",
"isMandatory": "true",
"name": "% Savings",
"type": "decimal",
"validationRegex": [
{
"type": "regex",
"message": "Greater Than Regex not satisfied
Error Message",
"rule": "pattern for greater than 0"
}
]
},
{
"fieldId": 6,
"seq": 6,
"jsonPropName": "gender",
"name": "Gender",
"type": "radio",
"validationRegex": [
{
"message": "Select Gender ",
"type": "enum",
"rule": [
{
"displayName": "Male",
"value": "M"
},
{
"displayName": "Female",
"value": "F"
}
]
}
]
}
]

You might also like