|
#!perl
plan tests => 2;
tdt(
Payload(
{
description => 'description' ,
headers => [ foo => 'bar' ],
attributes => [
a => {
example => 'b' ,
type => 'c' ,
description => 'd'
},
e => {
example => 'f' ,
type => 'g' ,
description => 'h'
},
],
code => 'code' ,
lang => 'lang' ,
schema => "schema" ,
}
)
. EOL,
<<'EOT', 'Payload' );
description
+ Headers
Foo: bar
+ Attributes
+ a: `b` (c) - d
+ e: `f` (g) - h
+ Body
```lang
code
```
+ Schema
schema
EOT
tdt(
Payload(
{
description => [ qw[ foo bar baz ] ],
headers => [ foo => 'bar' ],
attributes => [
a => {
example => 'b' ,
type => 'c' ,
description => 'd'
},
e => {
example => 'f' ,
type => 'g' ,
description => 'h'
},
],
code => 'code' ,
lang => 'lang' ,
schema => "schema" ,
}
)
. EOL,
<<'EOT', 'Payload' );
foo
bar
baz
+ Headers
Foo: bar
+ Attributes
+ a: `b` (c) - d
+ e: `f` (g) - h
+ Body
```lang
code
```
+ Schema
schema
EOT
done_testing;
|