managedIntegerValue
Properties, variants, types and bounds for managedIntegerValue.
This reference describes the full structure of managedIntegerValue. Paths include nested objects, list items and conditional branches. A branch selected by kind, contract or mode only admits its own properties.
Structure and values
| Field | Options / expected values | Description |
|---|---|---|
kind |
"integer" |
Required. Selects the variant and the properties admitted in this branch. |
minimum |
string; max length 1001; /^(?:0|-?[1-9][0-9]{0,999})(?![\s\S])/u |
Required. Cardinality or budget bound for the named resource. Exceeding the bound is refused; null denotes no bound only where admitted by the schema. |
maximum |
string; max length 1001; /^(?:0|-?[1-9][0-9]{0,999})(?![\s\S])/u |
Required. Cardinality or budget bound for the named resource. Exceeding the bound is refused; null denotes no bound only where admitted by the schema. |
unit |
closed object OR closed object OR closed object |
Required. Defines unit for this object. Observe the type, variants and bounds in the Options column. |
unit.[kind=dimensionless].kind |
"dimensionless" |
Required. Selects the variant and the properties admitted in this branch. |
unit.[kind=unit].kind |
"unit" |
Required. Selects the variant and the properties admitted in this branch. |
unit.[kind=unit].key |
string; min length 1; max length 120; /^[a-z][a-z0-9-]*$/u |
Required. Stable semantic identifier used by references; changing it changes identity. |
unit.[kind=currency].kind |
"currency" |
Required. Selects the variant and the properties admitted in this branch. |
unit.[kind=currency].key |
string; min length 1; max length 120; /^[a-z][a-z0-9-]*$/u |
Required. Stable semantic identifier used by references; changing it changes identity. |
Reading the contract
A path ending in [] describes each list item; {key} describes each dictionary value. The ↻ marker refers to the same recursive expression. Closed objects reject additional properties. Semantic validation denotes an additional check: matching a type does not make a reference, permission or transition valid. References must resolve in the Model and the current user context.
An older variant cannot accept properties belonging to a newer variant. The compiler checks the version and consistency of the complete Model.
Structural example
This fragment passes the schema for this section. Its business references must be defined in the enclosing Model.
{
"kind": "integer",
"minimum": "0",
"maximum": "1000000000",
"unit": {
"kind": "unit",
"key": "word"
}
}
Related references
Complete Model index · Build a Model
Applied examples : Required text and business choices
Company uses required text input; Status uses a declared list of choices.
Configuration
Contract object managedIntegerValue. Properties and accepted values.
{
"kind": "integer",
"minimum": "0",
"maximum": "1000000000",
"unit": {
"kind": "unit",
"key": "word"
}
}
Variation and connection
Fragment placed in forms[].fields[]. Properties and accepted values.
{
"contract": "WorkspaceFormControl@2",
"repeatable": false,
"key": "status",
"label": "Status",
"input": "choice",
"binding": {
"kind": "field",
"fieldKey": "status"
},
"required": true,
"ruleKeys": [],
"options": [
"prospect",
"active"
]
}
UI layout example
The illustrative layout below places this configuration in the Clients/Quotes app. Insert each fragment at the stated location, with Field, Query and Action references matching the Model declarations.
- Client identity
- Notes and follow-up
- Settings
- Linked quotes
kind- integer
minimum- 0
maximum- 1000000000
unit- Declared object
Values above follow the configuration fragment; references resolve in the complete Model.