HasIndexes provides an abstract definition for schemata that provide an array-like definition of an object.
| Definitions | Type | Description |
|---|---|---|
| index_variable |
|
The variable that must be present in the models access in the form
|
| indexes | Rangeset |
The range of values that the containing model can expand to, in order.
See
Rangeset
for more information.
|
{
"indexes": "3:0",
"index_variable": "n"
}
{
"title": "Traits.HasIndexes",
"info": [
"`HasIndexes` provides an abstract definition for schemata that provide an array-like definition of an object."
],
"definitions": {
"indexes": {
"$ref": "../Rangeset.json",
"info": [
"The range of values that the containing model can expand to, in order."
]
},
"index_variable": {
"info": [
"The variable that must be present in the models access in the form `` to be replaced with an index defined in the indexes property.",
"`x` by default."
],
"type": "string",
"pattern": "[A-Za-z][A-Za-z0-9_]*"
}
},
"examples": [
{
"indexes": "3:0",
"index_variable": "n"
}
],
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object"
}