File: array-prefix-items.example

package info (click to toggle)
python-validate-pyproject 0.24.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,340 kB
  • sloc: python: 3,053; makefile: 46; sh: 25
file content (18 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
    "type": "array",
    "prefixItems": [
        {"type": "number"},
        {"type": "boolean"}
    ],
    "contains": {"type": "string", "pattern": "a*", "maxLength": 8},
    "minItems": 5,
    "uniqueItems": true
}
# - # - # - #
type: array
items (in order):
  - {type: number}
  - {type: boolean}
contains at least one of: {type: string, pattern: 'a*', max length: 8}
min items: 5
unique items: True