The JSON schema type data model definitions may have the following properties:
Array
| Property | Description |
|---|---|
| Description | Describes the purpose of the array property. |
| Max. items | Specifies the maximum number of items that the array can contain. Validation fails if the array contains more items than the specified value. |
| Min. items | Specifies the minimum number of items that the array must contain. Validation fails if the array contains fewer items than the specified value. |
| Unique items | Determines whether all items in the array must be unique. When enabled, duplicate values are not allowed. |
Note: The array requires defining items nested in it.
Boolean
| Property | Description |
|---|---|
| Description | Describes the purpose of the boolean property. |
Integer
| Property | Description |
|---|---|
| Description | Describes the purpose of the integer property. |
| Exclusive maximum | Specifies a value that the property must be less than. The property value cannot be equal to the specified value. |
| Exclusive minimum | Specifies a value that the property must be greater than. The property value cannot be equal to the specified value. |
| Maximum | Specifies the highest allowed value. The property value can be equal to this value. |
| Minimum | Specifies the lowest allowed value. The property value can be equal to this value. |
Object
| Property | Description |
|---|---|
| Additional properties | Controls whether the object can contain properties that are not explicitly defined in the schema. When enabled, additional properties are allowed. When disabled, only the defined properties are permitted. Additional properties can also be validated using a separate schema definition. |
| Description | Describes the purpose of the object property and the information it contains. |
| Max. properties | Specifies the maximum number of properties the object can contain. Validation fails if the object contains more properties than the specified value. |
| Min. properties | Specifies the minimum number of properties the object must contain. Validation fails if the object contains fewer properties than the specified value. |
Number
| Property | Description |
|---|---|
| Description | Describes the purpose of the number property. |
| Exclusive maximum | Specifies a value that the property must be less than. The property value cannot be equal to the specified value. |
| Exclusive minimum | Specifies a value that the property must be greater than. The property value cannot be equal to the specified value. |
| Maximum | Specifies the highest allowed value. The property value can be equal to this value. |
| Minimum | Specifies the lowest allowed value. The property value can be equal to this value. |
String
| Property | Description |
|---|---|
| Description | Describes the purpose of the string property. |
| Format | Specifies the expected format of the string value. The format can be used to provide additional validation for the property. The following formats are available: date, date-time, email, hostname, ipv4, ipv6, uri. |
| Max. length | Specifies the maximum number of characters allowed in the string. Validation fails if the value exceeds the specified length. |
| Min. length | Specifies the minimum number of characters required in the string. Validation fails if the value contains fewer characters than the specified length. |
| Pattern | Specifies a regular expression that the string value must match. Validation fails if the value does not conform to the defined pattern. |