elf->empty and defined $value and !ref $value and $value eq '')
or (ref($value) =~ /^JSON::PP::Boolean$/);
my $val = ref $value || $value;
$self->error("Value '$val' is not a boo
f, $app, $conf) = @_;
$app->helper(validate_json_request => sub {
my ($c, $pattern) = @_;
return _validate_structure($c->req->json, $pattern);
});
$app->helper(validate_pa
t;
# Validate incoming requests against our data model.
if (my $error = $c->validate_json_request({
title => iv_any,
abstract => iv_any(optional => 1, empty => 1),