...
Code Block | ||
---|---|---|
| ||
{
"displayProperty": "countrycode",
"modelSchema" {
"properties": {
"name": {
"type": "string",
"min": 2,
"max": 80,
"required": true
},
"countrycode": {
"type": "string",
"min": 3,
"max": 3,
"required": true,
"description": "ISO Standard 3-character Country Code"
},
"population": {
"type": "int",
"required": false
},
"capital": {
"city": {
"type": "string",
"required": true
},
"districtOrState": {
"type": "string",
"required": true
}
}
}
}
} |
...
Code Block | ||
---|---|---|
| ||
{
"name": "countries",
"displayProperty": "countrycode"
"modelSchema": "{ \"properties\": { \"name\": { \"type\": \"string\", \"min\": 2, \"max\": 80, \"required\": true }, \"countrycode\": { \"type\": \"string\", \"min\": 3, \"max\": 3, \"required\": true, \"description\": \"ISO Standard 3-character Country Code\" }, \"population\": { \"type\": \"int\", \"required\": false }, \"capital\": { \"city\": { \"type\": \"string\", \"required\": true }, \"districtOrState\": { \"type\": \"string\", \"required\": true } } } }"
} |
...