-
Notifications
You must be signed in to change notification settings - Fork 8
/
27_nested.t
48 lines (40 loc) · 1.15 KB
/
27_nested.t
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
#!/usr/bin/perl
use strict;
use warnings;
our $test_class = 'FieldTest::Nested';
our @mapping = (
'basic' => {
type => "nested",
dynamic => "strict",
properties => {
bar => { type => "string" },
foo => {
dynamic => "strict",
include_in_all => 0,
properties => { foo => { type => "string" } },
type => "object",
},
},
},
disabled => qr /doesn't understand 'enabled'/,
options => {
dynamic => "true",
include_in_all => 0,
include_in_root => 1,
include_in_parent => 1,
path => "full",
properties => {
bar => { type => "string" },
foo => {
dynamic => "strict",
include_in_all => 0,
properties => { foo => { type => "string" } },
type => "object",
},
},
type => "nested",
},
multi => qr/doesn't understand 'multi'/,
);
do 't/10_typemaps/test_field.pl' or die $!;
1;