summaryrefslogtreecommitdiff
path: root/tests/files/fail/test_default.yaml
blob: ab0a0a5695263ae32b66b381089b0eafaf69c687 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
name: fail-default-1
desc: default value of map
schema:
  type: map
  mapping:
    =:
      type: number
      range: 
        min: -10
        max: 10
data:
  value1: 0
  value2: 20
  value3: -20
errors:
  - "Type 'scalar' has size of '-20', less than min limit '-10'. Path: '/value3'"
  - "Type 'scalar' has size of '20', greater than max limit '10'. Path: '/value2'"
  ## Kwalify errors
  # :range_toolarge     : 2:1:[/value2] '20': too large (> max 10).
  # :range_toosmall     : 3:1:[/value3] '-20': too small (< min -10).