summaryrefslogtreecommitdiff
path: root/tests/files/success/test_type_scalar.yaml
blob: da34401dcc048d07eb15632987dbb40b14cf40e3 (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
76
---
name: type-scalar-1
desc: Most basic test for type scalar
data: '1337.0'
schema:
  type: scalar
---
name: type-scalar-2
desc: Test that scalar type works with as value in map
data:
  foo: 1337
  bar: 3.14159
  qwe: True
  rty: '1337'
  ewq: '3.14159'
  dsa: '0.0'
schema:
  type: map
  mapping:
    foo:
      type: scalar
    bar:
      type: scalar
    qwe:
      type: scalar
    rty:
      type: scalar
    ewq:
      type: scalar
    dsa:
      type: scalar
---
name: type-scalar-3
desc: Test that different scalar values works as values in seq
data:
  - 1337
  - 3.14159
  - True
  - '1337'
  - '3.14159'
  - '0.0'
schema:
  type: seq
  sequence:
    - type: scalar
---
name: type-scalar-4
desc: Test that scalar type works inside nested map, seq, map
data:
  foobar:
    - foo: 1337
      bar: 3.14159
      qwe: True
      rty: '1337'
      ewq: '3.14159'
      dsa: '0.0'
schema:
  type: map
  mapping:
    foobar:
      type: seq
      sequence:
        - type: map
          mapping:
            foo:
              type: scalar
            bar:
              type: scalar
            qwe:
              type: scalar
            rty:
              type: scalar
            ewq:
              type: scalar
            dsa:
              type: scalar