1---
2name: length1
3desc: length test
4schema:
5  type: map
6  mapping:
7   "max-only":
8      type: seq
9      sequence:
10        - type: str
11          length:
12            max: 8
13   "min-only":
14      type: seq
15      sequence:
16        - type: str
17          length:
18            min: 4
19   "max-and-min":
20      type: seq
21      sequence:
22        - type: str
23          length:
24            max: 8
25            min: 4
26data:
27  max-only:
28    - hogehoge
29    - a
30    -
31  min-only:
32    - hoge
33    - hogehogehogehogehoge
34  max-and-min:
35    - hogehoge
36    - hoge
37---
38name: length2
39desc: length test (with max-ex and min-ex)
40schema:
41  type: map
42  mapping:
43   "max-ex-only":
44      type: seq
45      sequence:
46        - type: str
47          length:
48            max-ex: 8
49   "min-ex-only":
50      type: seq
51      sequence:
52        - type: str
53          length:
54            min-ex: 4
55   "max-ex-and-min-ex":
56      type: seq
57      sequence:
58        - type: str
59          length:
60            max-ex: 8
61            min-ex: 4
62data:
63  max-ex-only:
64    - hogehog
65    - a
66    -
67  min-ex-only:
68    - hoge!
69  max-ex-and-min-ex:
70    - hogehog
71    - hoge!
72---
73name: length3
74desc: length test (with min, max, max-ex and min-ex)
75schema:
76  type: map
77  mapping:
78   "A":
79      type: seq
80      sequence:
81        - type: str
82          length:
83            max: 8
84            min-ex: 4
85   "B":
86      type: seq
87      sequence:
88        - type: str
89          length:
90            max-ex: 8
91            min: 4
92data:
93  A:
94    - hogehoge
95    - hogeh
96  B:
97    - hogehog
98    - hoge
99