summaryrefslogtreecommitdiff
path: root/tests/files/success/test_type_text.yaml
blob: 7f218e2dbdb83f220b0a66d778293a4abcdd4e48 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
name: type-text-1
desc: Test simples text type
data: "foobar"
schema:
  type: text
---
name: type-text-2
desc: Test possible values as values in seq
data:
  - 'abc'
  - '1337'
  - '3.14159'
  - 1337
  - 3.14159
schema:
  type: seq
  sequence:
    - type: text
---
name: type-text-3
desc: Test possible values as values in map
data:
  foo: 1337
  bar: 3.14159
  qwe: 'abc'
  rty: '1337'
  ewq: '3.14159'
  dsa: '0.0'
schema:
  type: map
  mapping:
    foo:
      type: text
    bar:
      type: text
    qwe:
      type: text
    rty:
      type: text
    ewq:
      type: text
    dsa:
      type: text
---
name: type-text-4
desc: Test that text type works inside nested map, seq, map
data:
  foobar:
    - foo: 1337
      bar: 3.14159
      qwe: 'abc'
      rty: '1337'
      ewq: '3.14159'
      dsa: '0.0'
schema:
  type: map
  mapping:
    foobar:
      type: seq
      sequence:
        - type: map
          mapping:
            foo:
              type: text
            bar:
              type: text
            qwe:
              type: text
            rty:
              type: text
            ewq:
              type: text
            dsa:
              type: text