summaryrefslogtreecommitdiff
path: root/tests/files/success/test_type_str.yaml
blob: e5717c93b84ce2e7fca723b5bd4739e6508a5876 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
name: str1
desc: Test simples str value
data: "foobar"
schema:
  type: str
---
name: str2
desc: Test str value inside list
data:
  - 'foo'
  - bar
schema:
  type: seq
  sequence:
    - type: str
---
name: str3
desc: Test str value in mapping
data:
    foo: 'foobar'
schema:
  type: map
  mapping:
    foo:
      type: str
---
name: str4
desc: Test str inside nested map & seq
data:
  foo:
    - 'foo'
schema:
  type: map
  mapping:
    foo:
      type: seq
      sequence:
        - type: str
---
name: deftype1
desc: default type test. Becuase str is the default type it is in this file.
#
schema:
  type: seq
  sequence:
    - type: map
      mapping:
       "name":
       "email":
#
data:
  - name: foo
    email: foo@mail.com
  - name: bar
  - email: baz@mail.com