File: not.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 (25 lines) | stat: -rw-r--r-- 582 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
    "properties": {
        "type": {"enum": ["A", "B"]}
    },
    "propertyNames": {
        "not": {
            "anyOf": [
                {"const": "*"},
                {"pattern": ".*", "minLength": 8}
            ]
        }
    },
    "additionalProperties": false,
    "required": ["type"]
}
# - # - # - #
properties:
  'type': {one of: ['A', 'B']}
non-predefined acceptable property names:
  (*NOT* the following):
    at least one of the following:
      - {predefined value: '*'}
      - {pattern: '.*', min length: 8}
additional properties: False
required: ['type']