summaryrefslogtreecommitdiff
path: root/tests/files/fail/test_ident.yaml
blob: 2531dfe5610cd8d8696487cdad2f400f08b81690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
name: fail-ident-1
desc: ident constraint test
schema:
  type: seq
  sequence:
    - type: map
      mapping:
       "name":
          ident: true
       "age":
          type: int
data:
  - name: foo
    age:  10
  - name: bar
    age:  10
  - name: bar
    age:  10
errors:
  - "Value 'bar' is not unique. Previous path: '/1/name'. Path: '/2/name'"
  ## Kwalify errors
  # :value_notunique    : 5:3:[/2/name] 'bar': is already used at '/1/name'.