Bundled schemas¶
common/range: Numbers range¶
ID: file:/jsonschema_extras/schemas/common/range.json
Represents a numeric range defined by a minimum and maximum value. The array must contain exactly two numbers where the first element is the lower bound and the second is the upper bound.
Examples¶
Examples
[
0,
100
]
[
-5.5,
4.5
]
[
1.0,
1000000000.0
]
common/range_integer: Integer range¶
ID: file:/jsonschema_extras/schemas/common/range_integer.json
A range defined by minimum and maximum integer boundaries
Examples¶
Examples
[
0,
100
]
[
-50,
50
]
[
1,
1000
]
common/slice_object: Slice object¶
ID: file:/jsonschema_extras/schemas/common/slice_object.json
Represents a slice notation for selecting a range of elements, similar to Python’s slice(start, stop, step) syntax. All properties are optional.
Examples¶
Examples
{
"start": 0,
"stop": 10,
"step": 1
}
{
"start": 5,
"stop": 15
}
{
"start": 0,
"step": 2
}
{
"stop": 10
}
common/slice_string: Slice string¶
ID: file:/jsonschema_extras/schemas/common/slice_string.json
A string representing a slice operation in Python notation. Supports start:stop:step syntax where each component is optional and can be negative. Used for specifying ranges and steps in sequence operations.
Examples¶
Examples
"1:10"
":10"
"1:"
"::2"
"1:10:2"
"-5:"
":-5"
"0:100:5"
"-10:-2:1"